Pin GitHub Actions to SHA digests (zizmor unpinned-uses)

Open Beginner friendly
#224 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions
Domain
ci-cd, security

Research direction

Start with the workflow files under .github/workflows/ and run npx pin-github-action .github/workflows/*.yml to identify the three unpinned Action references. The work is done when each reference uses a full commit SHA, with its version comment retained where applicable, and the zizmor unpinned-uses findings are resolved.

Written by the indexing model from the issue text.

Description

Pin GitHub Actions to SHA digests

Zizmor detected 3 unpinned-uses findings in .github/workflows/.

GitHub Actions referenced by tag (e.g. actions/checkout@v4) are vulnerable to tag mutation — a compromised or hijacked tag can introduce malicious code into CI runs. Pinning to a full commit SHA (e.g. actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4) eliminates this supply-chain risk.

Fix

Run pin-github-action to update all workflow files automatically:

npx pin-github-action .github/workflows/*.yml
Recommendations
  • Dependabot: Add a .github/dependabot.yml with a github-actions entry so pinned SHAs are updated automatically when new Action versions are released.
  • zizmor-action: Add zizmor-action for continuous workflow security scanning in CI.
References

Opened by ds-security-scanning zizmor-cli-unpinned-uses

Dominant language
Shell
Stars
330
Forks
33
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/eoAPI

All issues in developmentseed/eoAPI

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.