Add zizmor + actionlint workflow analysis to CI; evaluate the new actions.lock workflow lockfile

オープン
#1,213 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
76/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, shell, yaml
領域
ci-cd, security

調査の方向性

Start with .github/workflows/security-scan.yml, scripts/validate-github-actions-shas.sh, scripts/check-workflow-hygiene.sh, and .github/workflows/yaml-lint.yml to understand the existing workflow gates. Add the proposed zizmor analysis and SARIF upload, then determine whether actionlint needs separate work because it is already covered by yaml-lint.yml. Done means the CI job runs successfully, reports zizmor findings in code scanning, follows the repository’s SHA-pinning policy, and includes a documented decision on .github/workflows/actions.lock.

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

説明

ci priority: medium security

Summary

This repo already does the hard parts of Actions supply-chain hygiene: all uses: refs are SHA-pinned, scripts/validate-github-actions-shas.sh enforces it, and every workflow declares a permissions: block. Two 2026-era additions would close the remaining gap above the pin:

  1. zizmor static analysis of .github/workflows/*.yml (injection, dangerous permissions, pull_request_target misuse, ref-confusion, impostor-commit — a SHA that only exists in an attacker's fork still resolves under the parent repo's name, which SHA-pinning alone does not catch).
  2. actionlint for workflow syntax/schema errors — already covered: yaml-lint.yml runs reviewdog/action-actionlint (SHA-pinned); see the status comment.
  3. Evaluate .github/workflows/actions.lock — GitHub's workflow dependency lockfile (public preview 14 Oct 2026) records the commit of every direct and transitive action dependency; Actions then runs the recorded commit even if a tag moves. This closes the transitive-trust gap that a direct-dependency pin cannot.

Evidence

  • Existing hygiene: scripts/validate-github-actions-shas.sh + scripts/check-workflow-hygiene.sh + yaml-lint.yml — but none perform security-pattern audits.
  • 2026 incident record: tj-actions/changed-files (CVE-2025-30066), TanStack May 2026 (CVE-2026-45321) — every publicly documented Actions compromise ran through a gap one of these controls closes.

Impact

  • Security: upgrades the workflow gate from "SHA matches a tag" to "workflow is free of known dangerous patterns"; catches impostor-commit SHAs and expression injection that current validators are blind to.
  • Low cost: zizmor runs as a single CI step; SARIF upload lands findings in code scanning alongside the existing gitleaks step in security-scan.yml.

Proposed approach

  1. Add a job to .github/workflows/security-scan.yml running zizmorcore/zizmor-action (SHA-pinned, per repo policy) with SARIF upload.
  2. Add actionlint step (or a BATS test in tests/ if the repo prefers the local-gate pattern).
  3. Add both to scripts/quality_gate.sh only if runtime cost stays within the gate budget.
  4. Spike/ADR for actions.lock while it is in preview; revisit before GA.

References

主要言語
TypeScript
スター
3
フォーク
2
平均マージ
11時間 49分
マージ済み PR(30日)
102

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

d-oit/do-knowledge-studio のほかの issue

d-oit/do-knowledge-studio の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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