-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to update action in GitHub Actions workflow #5733
Comments
@rarkins Could you add the new permission to the hosted GitHub App? |
@ikesyo can you first double check that our current |
@rarkins Current
uses: actions/checkout@v2 ), we need to use regex manager or update github-actions manager.
|
I've updated the app's permissions so that existing org admins will get a request to approve them. We need to make sure that we gracefully handle permission failures though.
|
ok, so currently users have to explicit enable the |
Yes, until we're sure that we're handing the lack of permissions gracefully enough |
Just for my understanding, with approved permission it should be possible to update action files with the regex manager? I added the regex manager from above (slightly modified), but my run fails with "repository-changed".
Am I doing something wrong? 🤔 |
Unfortunately GitHub still block apps if the Actions change is made via git instead of API. |
@rarkins Is that so? I am new to this issue but quickly checked if Dependabot supports this feature and it seems so, so I assume RenovateBot should be able to achieve this as well. Of course, unless Github keeps this API exclusive to their dependency manager |
Renovate app now has permission to update github workflows, but it's missing some manager features. As a workaround you can use regexManagers: renovate.json ...
"regexManagers": [
{
"fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"],
"matchStrings": ["uses: (?<depName>[a-z-/]+?)@(?<currentValue>.+?)\\s"],
"datasourceTemplate": "github-tags"
}
]
... |
@mrlubos it's unblocked now actually. The challenge was that we use git to push our changes to GitHub while Dependabot uses the API. The git flow does not follow the exact same path as API so there can be unintentional differences at times (it's not about GitHub benefiting their own app deliberately). |
This is up for grabs right? I might be interested in taking a swing. |
@RichiCoder1 it's all yours! |
Is there a way/pattern in renovate to track tags but pin to a commit kind like in docker? I know it's pretty common for use to track tags, but pin to a commit to avoid tag-shifting issues. (Also just generally any advice?) |
@RichiCoder1 can you give an example of what you mean? I'm not sure the actions syntax allows both a tag as well as a SHA, so if we were to support that then we may need to invent part of the syntax ourselves. Also for this issue I suggest you start with basic updating before progressing to anything advanced like pinning. |
Sounds good! |
That's fair. It doesn't, hence why I asked if something like that already existed. |
🎉 This issue has been resolved in version 23.55.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What would you like Renovate to be able to do?
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'd like to update actions in an GitHub Action workflow. In the example workflow (shortened) below the
wagoid/commitlint-github-action
can be updated to1.6.0
.Describe the solution you'd like
I'd like the
github-actions
manager to create updates for action in GitHub Actions workflow.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Current alternative is to also add a regex manager (source).
Additional context
Add any other context or screenshots about the feature request here.
See discussions in renovatebot/config-help#570 for this feature.
The text was updated successfully, but these errors were encountered: