Action attestation check is not pinned to the release workflow

オープン 初心者向け
#206 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, go
領域
security

調査の方向性

action.yml:168-172 のアテステーション検証呼び出しを読み、docs/ci.md:222 に記載されたコマンドと .goreleaser.yaml:83-88 のリリースコマンドを比較します。受け入れ基準に記載されたとおりに検証コマンドと関連する文言を更新し、一覧にある短時間のテストと lint を実行します。署名者のワークフロー名が一貫し、コメントがチェックサム検証を正確に説明していれば完了です。

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

説明

ci good first issue severity: low

Summary

The Action verifies the downloaded archive with gh attestation verify --repo, which accepts an attestation from any workflow of the repository. The comment and docs/ci.md say it checks provenance from the release workflow. The cosign command in the release notes does pin the workflow and tag.

Where

  • action.yml:168-172
  • docs/ci.md:222
  • .goreleaser.yaml:83-88 (cosign command with --certificate-identity-regexp for release.yml at a tag)

Details

With only --repo, the GitHub CLI checks the source repository and that the signing identity is some workflow under it; it does not require a particular workflow or ref (per the CLI documentation; not run against a counter-example). The comment "Verify the archive against the signed checksum list" also overstates the previous step: checksums.txt is used as downloaded and its signature bundle is not verified there, so the attestation is the single authenticity check.

Impact

Defense in depth: the property the docs promise (only the tag-triggered release workflow can produce an archive the action will run) is weaker than stated. Using the gap needs write access to the repository, so this is hardening, not a remote problem.

Suggested fix

Add --signer-workflow TMHSDigital/Spackle/.github/workflows/release.yml to the gh attestation verify call in action.yml and to the commands in docs/ci.md and the release footer, and, where the installed gh supports it, --source-ref "refs/tags/<tag>". Reword the comment to "against the checksum list of the release".

Acceptance criteria

  • The verify call names the signer workflow
  • docs/ci.md and the release footer show the same command
  • The comment describes what the checksum step does

Getting started

  • Relevant files: action.yml, docs/ci.md, .goreleaser.yaml
  • How to run tests: make test-short (Unix) or .\make.ps1 test-short (Windows PowerShell); make lint before you call it done
  • Related docs: docs/ci.md

Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: ci|action.yml|attestation-verify

主要言語
Go
スター
0
フォーク
1
平均マージ
8時間 14分
マージ済み PR(30日)
3

環境構築

Codespaces で開く

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

はじめの一歩

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

TMHSDigital/Spackle のほかの issue

TMHSDigital/Spackle の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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