Skip to content

security: Pin Github Actions#1

Open
hhvrc wants to merge 1 commit into
masterfrom
security/pin-gh-actions
Open

security: Pin Github Actions#1
hhvrc wants to merge 1 commit into
masterfrom
security/pin-gh-actions

Conversation

@hhvrc
Copy link
Copy Markdown

@hhvrc hhvrc commented May 6, 2026

Pins all third-party GitHub Actions in workflows and composite actions to immutable commit SHAs, with the resolved tag preserved in a trailing comment.

Generated by pin_github_actions.py.

Copilot AI review requested due to automatic review settings May 6, 2026 20:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Pins GitHub Actions used by the CI/build and release workflows to immutable commit SHAs to reduce supply-chain risk, while keeping the resolved tag/version as a trailing comment.

Changes:

  • Pin actions/checkout, actions/setup-dotnet, actions/upload-artifact, actions/download-artifact, and softprops/action-gh-release to full commit SHAs in the Release workflow.
  • Apply the same SHA pinning in the Build workflow (including its draft-release job).

Reviewed changes

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

File Description
.github/workflows/release.yml Replaces action tags with pinned commit SHAs for build + release steps.
.github/workflows/build.yml Replaces action tags with pinned commit SHAs for build + (tag-gated) draft release steps.

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

Comment on lines 13 to 18
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
Comment on lines 14 to 19
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants