Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"automerge": true,
"platformAutomerge": true
},
{
"matchManagers": ["github-actions"],
"matchDepTypes": ["uses-with"],
"enabled": false
Comment on lines +37 to +40
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

In Renovate docs for the github-actions manager, what is the recommended way to disable only setup-go/setup-python with-value version updates (not all uses-with updates)?

💡 Result:

Recommended approach: use a packageRule that matches the relevant GitHub Actions “with” dependency (depType: "uses-with") for actions/setup-go and actions/setup-python, and disable only those updates via enabled:false. In the github-actions manager, the “with” version inputs (e.g., node-version for actions/setup-node) are represented as depType = uses-with [1]. Renovate supports updating the “with” version for actions/setup-go and actions/setup-python [1]. Therefore, you can selectively turn off only those uses-with entries. Example Renovate config: { "packageRules": [ { "description": "Disable setup-go/setup-python with-version updates", "matchManagers": ["github-actions"], "matchDepTypes": ["uses-with"], "matchPackageNames": ["actions/setup-go", "actions/setup-python"], "enabled": false } ] } Notes: - matchDepTypes="uses-with" targets only the extracted “with” input versions, not the action reference in the uses: field [1]. - Limit with matchManagers=["github-actions"] so other managers’ dependencies aren’t affected [2].

Citations:


Scope is broader than the PR objective—this rule disables all uses-with updates, not just Go/Python versions.

The current configuration will suppress every uses-with update in GitHub Actions workflows, including other important runtime updates. To disable only setup-go and setup-python version bumps, add matchPackageNames:

Narrowed rule
     {
       "matchManagers": ["github-actions"],
+      "matchPackageNames": ["actions/setup-go", "actions/setup-python"],
       "matchDepTypes": ["uses-with"],
       "enabled": false
     },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{
"matchManagers": ["github-actions"],
"matchDepTypes": ["uses-with"],
"enabled": false
{
"matchManagers": ["github-actions"],
"matchPackageNames": ["actions/setup-go", "actions/setup-python"],
"matchDepTypes": ["uses-with"],
"enabled": false
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@renovate.json` around lines 37 - 40, The rule currently disables all GitHub
Actions "uses-with" updates by setting "matchManagers": ["github-actions"] and
"matchDepTypes": ["uses-with"] with "enabled": false; narrow this by adding a
"matchPackageNames" filter targeting only the actions you want to suppress
(e.g., "actions/setup-go" and "actions/setup-python" or their package name
patterns) so only those package updates are disabled; update the rule object
containing matchManagers/matchDepTypes/enabled (the renovate.json rule) to
include the appropriate matchPackageNames array and keep enabled:false.

},
{
"matchManagers": ["bundler"],
"groupName": "Ruby dependencies",
Expand Down
Loading