-
Notifications
You must be signed in to change notification settings - Fork 83
Pin GitHub Actions to immutable commit SHAs #1585
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: gcatanese <[email protected]>
|
@copilot When running the actions I get Error: This request has been automatically failed because it uses a deprecated version of |
Co-authored-by: gcatanese <[email protected]>
Updated |
gcatanese
left a comment
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.
Looks all good
|
@copilot I have approved the MR but I cannot merge it, I didnt commit anything, why does it need a review from another code owner? |
The CODEOWNERS file requires approval from both |
|
@copilot I am in both teams |
The merge requirement is likely due to branch protection rules requiring multiple approvals (e.g., minimum 2 approvals) rather than team-based requirements. This is a repository-level setting that would need to be checked in the branch protection rules for this branch. |
Description
Mutable action tags (@v4, @V3) allow code changes without review. If an action author is compromised, the pipeline is compromised.
All GitHub Actions now pinned to commit SHAs with version comments for reference:
actions/checkout@v4→11bd71901bbe5b1630ceea73d27597364c9af683# v4.2.2actions/setup-node@v4→39370e3970a6d050c480ffad4ff0ed4d3fdee5af# v4.1.0actions/cache@v4→1bd1e32a3bdc45362d1e726936510720a7c30a57# v4.2.0actions/stale@v9→28ca1036281a5e5922ead5184a1bbf96e5fc984e# v9.0.0actions-ecosystem/action-add-labels@v1→18f1af5e3544586314bbe15c0273249c770b2daf# v1github/codeql-action/*@v3→aa578102511db1f4524ed59b8cc2bae4f6e88195# v3.27.6Adyen/[email protected]→f5e0d6e68f1b203beb443efcabc680e087c2d334# v1.3.1Updated 9 workflow files, 23 action references total. All cache actions use v4.2.0 to avoid deprecated versions.
Tested scenarios
Fixed issue:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.