GitHub Actions: require actions to be pinned to full-length commit SHA#1372
Merged
GitHub Actions: require actions to be pinned to full-length commit SHA#1372
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Pins GitHub Actions used in workflows to full-length commit SHAs to comply with enterprise security enforcement requirements.
Changes:
- Replaced tag-based
uses: owner/repo@vXreferences with full commit SHAs across multiple workflows. - Added inline version annotations next to pinned SHAs for readability/traceability.
- Minor YAML formatting adjustments in workflow definitions.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/sonar.yml | Pins checkout, uv setup, and SonarSource actions to full commit SHAs. |
| .github/workflows/reuse-compliance.yml | Pins checkout and REUSE compliance action to full commit SHAs. |
| .github/workflows/refresh-lock-and-linter-dependencies.yml | Pins checkout, uv setup, templating, token, and PR creation actions to full commit SHAs. |
| .github/workflows/clang-tidy.yml | Pins checkout and uv setup actions to full commit SHAs. |
| .github/workflows/citations.yml | Pins checkout and cff-validator actions to full commit SHAs. |
| .github/workflows/ci.yml | Pins release downloader and PyPI publish actions; adjusts YAML formatting. |
| .github/workflows/check-code-quality.yml | Pins checkout and uv setup actions to full commit SHAs. |
| .github/workflows/check-build-reproducibility.yml | Pins checkout, uv setup, and setup-xcode actions to full commit SHAs. |
| .github/workflows/build-test-release.yml | Pins a broad set of actions (checkout, uv setup, artifacts, xcode, cibuildwheel, miniconda, releases) to full commit SHAs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
a4c1c96 to
ffd74c3
Compare
|
TonyXiang8787
approved these changes
Apr 16, 2026
This was referenced Apr 16, 2026
GitHub Actions: require actions to be pinned to full-length commit SHA
PowerGridModel/homebrew-pgm#1
Merged
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.



This is part of our goal to follow security best practices. See also https://docs.github.com/en/enterprise-cloud@latest/actions/reference/security/secure-use#using-third-party-actions
Cfr. https://docs.github.com/en/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#controlling-access-to-public-actions-and-reusable-workflows :
So we have to pin also the GitHub-owned (
actions/checkout, ...) and PowerGridModel-owned action (pgm-version-bump) before we can enable enforcing.In addition, uv has migrated to no longer use rolling release tags (e.g.
v7,v8,v8.0, ...) and instead requires us to use either the full tag (e.g.v8.0.0) or the full-length commit SHA (e.g.cec208311dfd045dd5311c1add060b2062131d57, optionally followed by a commented-out version of the tag, e.g.cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0). Further reading in https://github.com/astral-sh/setup-uv/releases/tag/v8.0.0 . This also means that we missed the latest version bump of uv. This feels like a good moment to jump, but let's let dependabot handle that, so we can 1. separate concerns, and 2. test whether the dependabot pipeline still worksRelates to: