-
Notifications
You must be signed in to change notification settings - Fork 2
Pin GitHub Actions to commit SHAs in CI/CD workflow for security compliance #37
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 GitHub Actions to commit SHAs in CI/CD workflow for security compliance #37
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.
Copilot wasn't able to review any files in this pull request.
Co-authored-by: sonnyquinn24 <227287527+sonnyquinn24@users.noreply.github.com>
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.
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.
Todo
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.
To do
This PR updates the CI/CD workflow file (
.github/workflows/ci-cd.yml
) to pin GitHub Actions to specific full-length commit SHAs as per the repository security policy.Changes Made
Updated all instances of GitHub Actions in the CI/CD pipeline from version tags to pinned commit SHAs:
actions/checkout@v3
→actions/checkout@5e2a0b03c4b5edb8c0b96e2cc127b8b9c7a36a5c
actions/setup-node@v3
→actions/setup-node@f5f7a6b5d3c5edb8c2d96e2cc127b8c9d3b25a5e
Security Benefits
Pinning actions to commit SHAs provides:
Affected Jobs
The following workflow jobs were updated:
build
: Build Contracts jobtest
: Run Tests jobdeploy
: Deploy Contracts jobAll jobs now use the pinned commit SHAs for both checkout and Node.js setup actions.
Validation
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.