-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Use SHA for action #50250
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
Use SHA for action #50250
Conversation
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.
Pull request overview
This PR enhances security by replacing semantic version tags with commit SHA references for the peter-evans/create-pull-request action across multiple GitHub workflow files. Using SHA references provides immutable references that prevent potential supply chain attacks through tag manipulation.
- Replaces
peter-evans/create-pull-request@v7with the specific SHA84ae59a2cdc2258d6fa0732dd66352dddae2a412 - Updates 8 workflow files consistently with the same SHA reference
- Aligns with GitHub Actions security best practices for pinning dependencies
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/dependabot-bot.yml | Updates action reference in the dependabot configuration update workflow |
| .github/workflows/cleanrepo-replace-redirects.yml | Updates action reference in the redirect replacement cleanup workflow |
| .github/workflows/cleanrepo-relative-links.yml | Updates action reference in the relative links cleanup workflow |
| .github/workflows/cleanrepo-redirect-hops.yml | Updates action reference in the redirect hops removal workflow |
| .github/workflows/cleanrepo-orphaned-snippets.yml | Updates action reference in the orphaned snippets cleanup workflow |
| .github/workflows/cleanrepo-orphaned-includes.yml | Updates action reference in the orphaned includes cleanup workflow |
| .github/workflows/cleanrepo-orphaned-images.yml | Updates action reference in the orphaned images cleanup workflow |
| .github/workflows/cleanrepo-orphaned-articles.yml | Updates action reference in the orphaned articles cleanup workflow |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
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 LGTM. Let's ![]()
I'm fine with ignoring the Copilot comments. Dependabot will add those when a new version comes out.
Internal previews