Background
直近で shai-hulud npm worm、tj-actions/changed-files の compromise、nx/chalk/debug の悪性版配布など、サプライチェーン攻撃が連続的に発生している。Rox の CI/CD と依存管理を堅牢化する。
Goals
- GitHub Actions の SHA 固定で改ざんされた tag 経由の侵入を防止
bun install の厳格化で lockfile 整合性を担保
- ワークフローのデフォルト権限を最小化
- 新規依存と既知 CVE の検査を PR 必須化
- Actions 自体のバージョン更新を Dependabot で自動化
Scope
.github/workflows/*.yml
.github/dependabot.yml
Out of scope
- Sigstore/cosign 署名と build provenance(次フェーズ)
- 本番 host の egress allowlist(運用領域)
References
Background
直近で
shai-huludnpm worm、tj-actions/changed-filesの compromise、nx/chalk/debugの悪性版配布など、サプライチェーン攻撃が連続的に発生している。Rox の CI/CD と依存管理を堅牢化する。Goals
bun installの厳格化で lockfile 整合性を担保Scope
.github/workflows/*.ymloven-sh/setup-bun,softprops/action-gh-release)bun-version: latestを具体バージョン(1.3.14)に固定bun install --frozen-lockfileを CI で強制GITHUB_TOKENをcontents: read既定化.github/dependabot.ymlpackage-ecosystem: github-actionsを追加し週次更新package-ecosystem: npmを root と各 package で追加(既存ならスキップ)Out of scope
References