fix: Pin actions/github-script to specific SHA#1032
Merged
Conversation
Replace the tag reference (v8.0) with a full commit SHA for actions/github-script in .github/workflows/add-labels.yml and .github/workflows/auto-delete-branch.yml (ed597411d8f924073f98dfc5c65a23a2325f34cd, comment notes v8.0.0). This pins the action to an exact revision to ensure reproducible, stable workflow runs and avoid unexpected changes from tag updates.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request improves the security posture of GitHub Actions workflows by pinning actions/github-script to a specific commit SHA instead of using a mutable tag reference. The changes ensure reproducible and stable workflow runs by preventing unexpected changes from tag updates.
Changes:
- Replaced
actions/[email protected]withactions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0in two workflow files - Applied consistent SHA pinning pattern already established in other workflow files
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/auto-delete-branch.yml |
Updated actions/github-script reference from tag v8.0 to SHA-pinned v8.0.0 |
.github/workflows/add-labels.yml |
Updated actions/github-script reference from tag v8.0 to SHA-pinned v8.0.0 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the tag reference (v8.0) with a full commit SHA for actions/github-script in .github/workflows/add-labels.yml and .github/workflows/auto-delete-branch.yml (ed597411d8f924073f98dfc5c65a23a2325f34cd, comment notes v8.0.0). This pins the action to an exact revision to ensure reproducible, stable workflow runs and avoid unexpected changes from tag updates.