ci: pin third-party GitHub Actions to commit SHAs#2690
Merged
riccardobl merged 2 commits intomasterfrom Apr 7, 2026
Merged
Conversation
…curity Agent-Logs-Url: https://github.com/jMonkeyEngine/jmonkeyengine/sessions/ba661332-54ca-46b9-9632-76a0b12bae37 Co-authored-by: riccardobl <4943530+riccardobl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement sha pinning for third-party github actions
ci: pin third-party GitHub Actions to commit SHAs
Apr 7, 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.
Third-party actions referenced by tag are vulnerable to supply-chain attacks — a compromised tag can silently execute malicious code in CI. This pins all third-party actions to immutable commit SHAs while retaining semantic version tags as inline comments for readability. Official (
actions/*,gradle/actions/*) actions keep semantic versions so Dependabot's vulnerability scanner remains effective.Pinned actions
main.ymlmaxim-lobanov/setup-xcode60606e26(v1.6.0)screenshot-test-comment.ymllewagon/wait-on-check-action3603e826(v1.4.1)screenshot-test-comment.ymlpeter-evans/find-commentb30e6a3c(v4.0.0)screenshot-test-comment.ymlpeter-evans/create-or-update-commente8674b07(v5.0.0)format.ymlcreyD/prettier_action8c18391f(v4.6)Example format:
Dependabot's existing
github-actionsecosystem config already supports SHA-pinned actions and will raise PRs when newer versions are available.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/creyD/prettier_action/git/ref/tags/v4.6/usr/bin/curl curl -s REDACTED(http block)https://api.github.com/repos/lewagon/wait-on-check-action/git/ref/tags/v1.4.1/usr/bin/curl curl -s REDACTED(http block)https://api.github.com/repos/maxim-lobanov/setup-xcode/git/ref/tags/v1.6.0/usr/bin/curl curl -s REDACTED(http block)https://api.github.com/repos/peter-evans/create-or-update-comment/git/ref/tags/v5.0.0/usr/bin/curl curl -s REDACTED(http block)https://api.github.com/repos/peter-evans/find-comment/git/ref/tags/v4.0.0/usr/bin/curl curl -s REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either: