Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

chore: pin GitHub Actions to commit SHAs#16

Open
tungvuson wants to merge 3 commits into
masterfrom
chore/pin-gha-to-sha
Open

chore: pin GitHub Actions to commit SHAs#16
tungvuson wants to merge 3 commits into
masterfrom
chore/pin-gha-to-sha

Conversation

@tungvuson

Copy link
Copy Markdown

Why

N/A — automated security hardening (supply-chain security)

Summary

Pin all GitHub Actions uses: references to exact commit SHAs. Reusable workflow calls and local ./ refs are left unchanged.

Changes proposed in this pull request

  • .github/**/*.yml / .github/**/*.yaml — each uses: action@tag replaced with uses: action@<commit-sha> # tag

Test Evidence

No logic changes. SHA values verified against GitHub API at time of generation.

Risk

Size: small diff (YAML comments only). Complexity: none. Type: CI config. Feature area: none. Requirements adherence: N/A. Test evidence clarity: N/A. Overall: no risk identified.

Copilot AI review requested due to automatic review settings April 6, 2026 04:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Pins third-party GitHub Actions in the repo’s workflows to immutable commit SHAs to reduce supply-chain risk, while preserving the original version intent via inline comments.

Changes:

  • Replaced uses: owner/action@tag with uses: owner/action@<commit-sha> # tag across workflows.
  • Left local ./ references and reusable workflow calls unchanged (none shown in the diffs provided).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/sonarqube-scan.yaml Pins actions/checkout and actions/setup-node to specific commit SHAs.
.github/workflows/release.yml Pins checkout/setup-go/goreleaser-action/action-slack to SHAs for the release pipeline.
.github/workflows/push.yml Pins all third-party actions used in the push CI job (lint/build/publish/tag/notify) to SHAs.
.github/workflows/pull_request.yml Pins all third-party actions used in the PR workflow (build/push/comment/notify) to SHAs.
.github/workflows/issues.yaml Pins actions/stale to a specific commit SHA.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants