-
Notifications
You must be signed in to change notification settings - Fork 394
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
#10531 - Use non-deprecated Github Actions #10532
Conversation
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every week | ||
interval: "weekly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might need tweaking to be less annoying (filtering on semver:major only maybe), we'll see. I'll do it as needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filtering to semver:major does seem pretty reasonable. But also...maybe weekly isn't too bad regardless. Is there a dependabot or whatever that can open PRs automatically to take the weekly pain down a bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser(description="Update GHA Actions.") | ||
parser.add_argument("--safe", action="store_true", default=False, help="Only update official GHA actions/xxx") | ||
args = parser.parse_args() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New script to run locally to automatically update GHA actions
If you pass "--safe" it will only check the actions that start with "actions/xxx" meaning they are official github actions. Compatibility is pretty much a given here from experience. (actions/checkout, actions/setup-python, actions/upload-artifact, etc)
- name: Run clang-format style check for C/C++ programs. | ||
uses: jidicula/clang-format-action@v4.10.1 | ||
uses: jidicula/clang-format-action@v4.13.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of two deps that aren't github official that I bumped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Same question about using the full SHA for resilience/safety? Probably not important, just asking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a "community" maintained action, so pinning to a minor/patch isn't a bad idea.
@@ -9,7 +9,7 @@ jobs: | |||
runs-on: ubuntu-latest | |||
steps: | |||
- name: Verify PR label action | |||
uses: mheap/github-action-required-labels@v3 | |||
uses: mheap/github-action-required-labels@v5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other of two deps that aren't github official that I bumped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem at all with this, it's a great improvement. And adding a weekly check plus a locally running script to auto-update them is very nice.
One question I have is...what if we want to pin to a specific version for a while? This will continually complain? Is there 'exclude-list' capability?
In any case, this should merge right away.
@@ -21,7 +21,7 @@ jobs: | |||
runs-on: ubuntu-latest | |||
steps: | |||
# check out the repo to get the script downloaded | |||
- uses: actions/checkout@v3 | |||
- uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, of course. Any preference to using the full SHA instead of a tag? Is that safer/preferred?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github official actions are safe to pin to a major tag.
- name: Run clang-format style check for C/C++ programs. | ||
uses: jidicula/clang-format-action@v4.10.1 | ||
uses: jidicula/clang-format-action@v4.13.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Same question about using the full SHA for resilience/safety? Probably not important, just asking.
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every week | ||
interval: "weekly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filtering to semver:major does seem pretty reasonable. But also...maybe weekly isn't too bad regardless. Is there a dependabot or whatever that can open PRs automatically to take the weekly pain down a bit?
Totally happy. No reason to hold. We can continue to tweak this along with everything else at any time. Thanks @jmarrec |
exactly. It's called "ignore", see https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates#example-disabling-version-updates-for-some-dependencies eg
|
Pull request overview
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.