Adopt gh actions-lock for GitHub Actions

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

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

評価

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

調査の方向性

まず .github/workflows/ にある既存のワークフローファイルを確認し、タグまたはブランチでアクションを固定している uses: の行をすべて書き出してください。拡張機能 gh actions-lock をインストールして実行し、.github/workflows/actions.lock を生成します。その後、pull request と push で gh actions-lock --verify を実行する verify-lockfile.yml を追加します。lockfile と検証ワークフローがコミットされ、pull request で検証ジョブが成功すれば完了です。

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

説明

GitHub Actions in this repository reference actions or reusable workflows by mutable tag or branch, and are not yet locked with gh actions-lock.

gh actions-lock keeps readable version tags in your uses: lines and records the exact commit SHA of every direct and transitive action in .github/workflows/actions.lock. A compromised or force-pushed tag can no longer silently change the code your workflows execute, and changes to the lockfile are visible in pull request diffs.

What is missing
  • No lockfile found at .github/workflows/actions.lock
  • No verify workflow found at .github/workflows/verify-lockfile.yml
What to do
  1. Install the extension and generate the lockfile:

    gh extension install github/gh-actions-lock
    gh actions-lock
    

    Keep version tags in uses: (for example actions/[email protected]). Any inline commit SHAs are rewritten back to version tags automatically.

  2. Add .github/workflows/verify-lockfile.yml, which runs gh actions-lock --verify on every pull request and push to catch drift or tampering.

  3. Commit .github/workflows/actions.lock and the verify workflow.

References
主要言語
Rust
スター
50
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

esphome/esp-stacktrace-decoder のほかの issue

esphome/esp-stacktrace-decoder の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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