Skip to content

fix: Pin actions/github-script to specific SHA#1032

Merged
edwinjosechittilappilly merged 1 commit into
mainfrom
fix-ci-actions
Feb 26, 2026
Merged

fix: Pin actions/github-script to specific SHA#1032
edwinjosechittilappilly merged 1 commit into
mainfrom
fix-ci-actions

Conversation

@edwinjosechittilappilly

Copy link
Copy Markdown
Collaborator

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.

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.
Copilot AI review requested due to automatic review settings February 26, 2026 15:08
@github-actions github-actions Bot added ci ⬛ CI/CD, build, and infrastructure issues bug 🔴 Something isn't working. labels Feb 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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] with actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 in 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.

@lucaseduoli lucaseduoli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-actions github-actions Bot added the lgtm label Feb 26, 2026
@edwinjosechittilappilly edwinjosechittilappilly merged commit 996832c into main Feb 26, 2026
13 checks passed
@github-actions github-actions Bot deleted the fix-ci-actions branch February 26, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🔴 Something isn't working. ci ⬛ CI/CD, build, and infrastructure issues lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants