Skip to content

ci: pin third-party GitHub Actions to commit SHAs#2690

Merged
riccardobl merged 2 commits intomasterfrom
copilot/use-sha-pinning-for-actions
Apr 7, 2026
Merged

ci: pin third-party GitHub Actions to commit SHAs#2690
riccardobl merged 2 commits intomasterfrom
copilot/use-sha-pinning-for-actions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

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

Workflow Action Pinned SHA
main.yml maxim-lobanov/setup-xcode 60606e26 (v1.6.0)
screenshot-test-comment.yml lewagon/wait-on-check-action 3603e826 (v1.4.1)
screenshot-test-comment.yml peter-evans/find-comment b30e6a3c (v4.0.0)
screenshot-test-comment.yml peter-evans/create-or-update-comment e8674b07 (v5.0.0)
format.yml creyD/prettier_action 8c18391f (v4.6)

Example format:

- uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0

Dependabot's existing github-actions ecosystem 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
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://api.github.com/repos/lewagon/wait-on-check-action/git/ref/tags/v1.4.1
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://api.github.com/repos/maxim-lobanov/setup-xcode/git/ref/tags/v1.6.0
    • Triggering command: /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
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://api.github.com/repos/peter-evans/find-comment/git/ref/tags/v4.0.0
    • Triggering command: /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:

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
Copilot AI requested a review from riccardobl April 7, 2026 09:01
@riccardobl riccardobl marked this pull request as ready for review April 7, 2026 09:11
@riccardobl riccardobl merged commit 53d7bba into master Apr 7, 2026
18 checks passed
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.

Use sha pinning for third party github actions

2 participants