developmentseed / developmentseed/eoAPI

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

オープン 初心者向け
#224 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
326
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

説明

## 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`](https://github.com/mheap/pin-github-action) to update all workflow files automatically:

```bash
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](https://github.com/zizmorcore/zizmor-action?tab=readme-ov-file#usage-with-github-advanced-security-recommended) for continuous workflow security scanning in CI.

### References

- [zizmor unpinned-uses audit](https://docs.zizmor.sh/audits/#unpinned-uses)
- [pin-github-action](https://github.com/mheap/pin-github-action)

---
_Opened by [ds-security-scanning](https://github.com/developmentseed/ds-security-scanning) zizmor-cli-unpinned-uses_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github-actions
領域
ci-cd, security
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
72/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。