-
Notifications
You must be signed in to change notification settings - Fork 0
ci: use the shared setup-buildx wrapper #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: gooddata/gooddata-goodmock
Length of output: 189
🏁 Script executed:
Repository: gooddata/gooddata-goodmock
Length of output: 2851
🌐 Web query:
GitHub Actions secure use pin actions to full length commit SHA mutable tag branch official documentation💡 Result:
To secure GitHub Actions, it is recommended to pin actions to a full-length (40-character) commit SHA rather than a mutable tag or branch [1][2][3]. Pinning to a full-length SHA ensures that the exact, immutable version of the code is executed, preventing attackers from injecting malicious code into existing tags or branches that your workflow might otherwise automatically pull and run [4][3][5]. Key points for implementing SHA pinning: 1. Use Full-Length Commit SHAs: Always use the complete 40-character SHA [6][7]. Abbreviated SHAs are not recommended and may not be accepted by all security policies [7]. 2. Maintain Human Readability: A common best practice is to include the human-readable version tag as a comment in the workflow file (e.g., uses: actions/checkout@3df4ab1 # v4.0.0) [3][6][5]. This makes the workflow easier to understand and allows tools like Dependabot or Renovate to track and suggest updates [8][9][5]. 3. Automate Updates: Pinning does not mean you stop receiving updates. You can configure dependency management tools such as Dependabot or Renovate to monitor the referenced action's repository and open pull requests that update the SHA and the version comment automatically [8][9][5]. 4. Enforce via Policies: GitHub allows organization and repository administrators to enforce SHA pinning through Actions policies [1][10]. When enabled, any workflow that attempts to use a mutable reference (like a tag or branch) will fail, ensuring compliance across the organization [10][8][5]. 5. Security Context: While SHA pinning is the most secure option, GitHub still recommends that you only trust actions from creators you know [1][2]. The "Verified creator" badge on the GitHub Marketplace is one indicator of trustworthiness, but SHA pinning remains the primary defense against supply-chain attacks where a valid action repository is compromised [1][2][5]. Official documentation emphasizes that pinning to a full-length commit SHA is currently the only way to treat an action dependency as an immutable release [1][2].
Citations:
Pin the shared Buildx action to an immutable commit SHA.
All three workflows use
gooddata/github-actions/docker/setup-buildx@master. Replace@masterwith the same verified 40-character commit SHA in all three locations. Do not use an unverified SHA.📍 Affects 3 files
.github/workflows/dispatch-alpha-release.yml#L21-L21(this comment).github/workflows/post-merge.yml#L100-L100.github/workflows/pull-request-status-check.yml#L35-L35🤖 Prompt for AI Agents