-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Pin actions to a full length commit SHA #24647
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
Pin actions to a full length commit SHA #24647
Conversation
7669cac
to
94f77fc
Compare
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.
Thanks for this PR, can you also please fix the commit message?
cc. @clydin
- Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
94f77fc
to
63f21f5
Compare
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.
Thank you for the quick update. Overall LGTM
@devversion Let me know if something else is missing. Thanks for the quick review and turnaround appreciate it! |
Signed-off-by: naveensrinivasan <[email protected]>
cfa2951
to
30f6537
Compare
@devversion What is that needed to merge this in? |
* build: Pin actions to a full length commit SHA - Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions * build: Fixed the incorrect SHA's Signed-off-by: naveensrinivasan <[email protected]> (cherry picked from commit 8ae8216)
* build: Pin actions to a full length commit SHA - Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions * build: Fixed the incorrect SHA's Signed-off-by: naveensrinivasan <[email protected]>
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
Also, dependabot supports upgrading based on SHA.
Signed-off-by: naveensrinivasan [email protected]
Other angular projects are doing similar stuff https://github.com/angular/angular-cli/blob/366cabc66c3dd836e2fdfea8dad6c4c7c2096b1d/.github/workflows/dev-infra.yml#L16
https://github.com/angular/angular/blob/8155428ba65c38c0c15f2666727202a7b360c1bd/.github/workflows/feature-requests.yml#L10