🧹 chore: Pin GitHub Action references in .github to immutable SHAs#10
Merged
Conversation
Agent-Logs-Url: https://github.com/gofiber/.github/sessions/2d04561f-aed1-432f-be9c-4cba40e9c7b0 Co-authored-by: gaby <835733+gaby@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gofiber/.github/sessions/2d04561f-aed1-432f-be9c-4cba40e9c7b0 Co-authored-by: gaby <835733+gaby@users.noreply.github.com>
.github to immutable SHAs.github to immutable SHAs
There was a problem hiding this comment.
Pull request overview
Pins GitHub Actions uses: references under .github to immutable commit SHAs to make workflow/action execution deterministic and reduce supply-chain risk, while preserving the original tag/branch in comments.
Changes:
- Updated multiple workflows to use commit-SHA-pinned references for
actions/*,github/codeql-action/*,dorny/paths-filter,dependabot/fetch-metadata, andgofiber/multi-labeler. - Updated internal
gofiber/.githubaction references from@mainto a specific commit SHA. - Pinned
actions/setup-goinside theclean-release-notescomposite action to a commit SHA.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/weekly-release.yml | Pins external actions and internal clean-release-notes action reference to a SHA. |
| .github/workflows/sync-docs.yml | Pins checkout/setup-node action references to SHAs. |
| .github/workflows/security-golang.yml | Pins checkout and CodeQL action references to SHAs. |
| .github/workflows/go-lint-single.yml | Pins checkout/setup-go/golangci-lint action references to SHAs. |
| .github/workflows/go-lint-multi.yml | Pins checkout/paths-filter/setup-go/golangci-lint action references to SHAs. |
| .github/workflows/dependabot-on-demand.yml | Pins checkout action reference to a SHA. |
| .github/workflows/dependabot-automerge.yml | Pins dependabot/fetch-metadata action reference to a SHA. |
| .github/workflows/auto-labeler.yml | Pins gofiber/multi-labeler action reference to a SHA. |
| .github/workflows/after-release.yml | Pins internal trigger-dependabot action reference to a SHA. |
| .github/actions/cleanup-release-draft/action.yml | Pins internal clean-release-notes action reference to a SHA. |
| .github/actions/clean-release-notes/action.yml | Pins actions/setup-go reference to a SHA. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
395
to
400
| - name: Checkout central repo (for cleanup tool) | ||
| uses: actions/checkout@v6.0.2 | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| repository: gofiber/.github | ||
| path: .central | ||
|
|
| uses: actions/checkout@v6.0.2 | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| repository: gofiber/.github |
| - name: Clean release notes | ||
| if: steps.draft.outputs.found == 'true' | ||
| uses: gofiber/.github/.github/actions/clean-release-notes@main | ||
| uses: gofiber/.github/.github/actions/clean-release-notes@2a2c623de2cfdc4c6b52ecf52907be260a01949b # main |
ReneWerner87
approved these changes
May 10, 2026
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.
GitHub Actions under
.githubstill referenced mutable tags and branch names. This updates workflow and composite actionuses:references to commit SHAs so executions are deterministic while keeping the original ref visible in comments.What changed
gofiber/.githubaction references that previously used@mainWhere
.github/workflows/*.github/actions/*/action.ymlRepresentative updates
actions/checkout@v6.0.2→actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2github/codeql-action/init@v4→github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4gofiber/.github/.github/actions/clean-release-notes@main→...@2a2c623de2cfdc4c6b52ecf52907be260a01949b # mainExample