Skip to content

ci: pin GitHub Actions to commit SHAs - #1314

Open
chopmob-cloud wants to merge 1 commit into
a2aproject:mainfrom
chopmob-cloud:ci/pin-actions-sha
Open

chopmob-cloud wants to merge 1 commit into
a2aproject:mainfrom
chopmob-cloud:ci/pin-actions-sha

Conversation

@chopmob-cloud

Copy link
Copy Markdown
Contributor

Pins the GitHub Actions in .github/workflows to full-length commit SHAs with # vX version comments, bringing this repo in line with the sibling repo a2a-go, which is already fully pinned.

Why

A mutable tag like @v7 can be moved to new code after review, so a compromised or hijacked action tag would run with this workflow's permissions. Pinning to a commit SHA is the OpenSSF Scorecard "Pinned-Dependencies" control and the GitHub-recommended practice. This repo already runs Dependabot for the github-actions ecosystem, so Dependabot keeps the SHA pins current (it bumps the SHA and the # vX comment together).

What

  • Pins every non-local uses: across 10 workflow files to its exact commit SHA, keeping a # vX version comment. Same versions, no upgrades or downgrades.
  • Generated with pinact; each pinned SHA was verified to resolve to the version in its comment via the GitHub API.
  • Ref-pinning only: no job, step, trigger, or permission changed, so there is no functional change. A few already-pinned entries also had their # vX comment expanded to the exact version (same SHA).

Pin the GitHub Actions in .github/workflows to full-length commit SHAs
with version comments. A mutable tag can be re-pointed after review, so
pinning to a commit SHA is the OpenSSF Scorecard Pinned-Dependencies
control. Ref-pinning only, same versions, no functional change. Generated
with pinact; each SHA verified to resolve to its version tag.

Signed-off-by: AlgoVoi <chopmob@gmail.com>
@chopmob-cloud
chopmob-cloud requested a review from a team as a code owner October 5, 2026 06:03
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

🧪 Code Coverage (vs main)

⬇️ Download Full Report

Base PR Delta
src/a2a/server/cluster/database_event_stream.py 92.86% 96.94% 🟢 +4.08%
Total 92.99% 93.03% 🟢 +0.04%

Generated by coverage-comment.yml

This branch has not been deployed

No deployments
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.

1 participant