ci(github): Update GitHub actions to use specific commit hashes and add names for all workflow jobs. - #781
Conversation
WalkthroughThis pull request updates multiple GitHub Actions workflows and custom action definitions by replacing version tags with explicit commit hashes. In addition, several workflows have been enhanced with explicit job names. The changes affect Docker actions, artifact handling, and other utility actions like checkout and setup-python within both custom actions and workflow definitions, thereby pinning the actions to known, fixed states. Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (44)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| clp_changed: "${{steps.filter.outputs.clp}}" | ||
| steps: | ||
| - uses: "actions/checkout@v4" | ||
| - uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" |
There was a problem hiding this comment.
Is it possible to use a variable instead of repeating the hash in multiple places in this file? (I haven't tried myself.)
There was a problem hiding this comment.
Apparently they can be configured as variables through repository settings on github if we want to look into that.
There was a problem hiding this comment.
Do you have a link to the docs about it?
There was a problem hiding this comment.
There was a problem hiding this comment.
Can you test if it works using your fork?
There was a problem hiding this comment.
Passing repository variables directly to the uses: statement (i.e: uses: "actions/checkout@${{ CHECKOUT_VERSION }}") doesn't work, since dynamic values aren't allowed. https://github.com/orgs/community/discussions/25246
There might be some kind of workaround but I'm not sure.
kirkrodrigues
left a comment
There was a problem hiding this comment.
For the PR title, how about:
ci(github): Update GitHub actions to use specific commit hashes and add names for all workflow jobs.
…dd names for all workflow jobs. (y-scope#781)
Description
This PR updates actions used in our workflows to specific commit hashes. This change intends to improve security and stability by avoiding the possibility of changes to the actions having an effect on our workflows.
This PR also adds names to workflows that do not already have one.
Checklist
breaking change.
Validation performed
Summary by CodeRabbit
These changes enhance the reliability and traceability of our build, test, and deployment processes.