ci: install Vale through nolte/gh-plumbing/actions/setup-vale
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, yaml
- 領域
- ci-cd
調査の方向性
.github/workflows/ci.yaml の「Install Vale」ステップ(37-47行目あたり)を .tool-versions とあわせて読むことから始め、次に gh-plumbing の README の「Actions」セクションに従って .vale-version の形式と SHA-256 行を生成するコマンドを確認してください。digest で固定された uses: 参照をコピーし、sudo tar によるインストールを削除してください。バージョン一致チェックは gh-plumbing の scripts/vale_version.py を手本にしてください。完了とは、アクションが digest で固定された状態で CI が通り、.vale-version がコミットされ、2 つのバージョンファイルが揃っていることです。
索引モデルが issue の本文から書いたものです。
説明
What
.github/workflows/ci.yaml (step "Install Vale", around lines 37-47) reads the version from .tool-versions, fetches the checksum file from the same release at run time and checks the asset against it, then unpacks with sudo tar. The checksum isn't committed, so the check trusts whatever the release serves at that moment.
The action
nolte/gh-plumbing/actions/setup-vale (nolte/gh-plumbing#488, merged as f4f1d99a3e1ec1769b31058d8d5d5d4567490896) installs a pinned Vale binary only after its release asset matches a committed SHA-256. It reads .vale-version:
VALE_VERSION=3.15.2
VALE_SHA256=<sha256> vale_3.15.2_Linux_64-bit.tar.gz
and is used with a digest pin:
- uses: nolte/gh-plumbing/actions/setup-vale@f4f1d99a3e1ec1769b31058d8d5d5d4567490896
It refuses a checksum mismatch and a checksum line that names another version, needs no sudo, and supports Linux x86-64 runners. The format, the commands to obtain the checksum, and the Renovate pattern are in the gh-plumbing README, section "Actions".
To do
- Add a
.vale-versionwith the version from.tool-versionsand its SHA-256. - Replace the inline install step with the action, pinned by digest. It needs no
sudo. - Keep
.tool-versionsand.vale-versionin step; gh-plumbing'sscripts/vale_version.pyis an example of a check for that.
- 主要言語
- HCL
- スター
- 0
- フォーク
- 0
- 平均マージ
- 23分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nolte/terraform-github-bootstrap のほかの issue
-
docs project-config
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nolte/terraform-github-bootstrap の issue をすべて見る
似ている issue
-
platform: ci platform: security
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
projectwallace/projectwallace.com#498 ·
メンテナーはふだん 1 日以内に返信
-
Go Lint fails with "Text file busy" while a golangci-lint step installs the binary対応中かも @denisvmedia が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
389ds/389-ds-base#8251 ·
メンテナーはふだん 1 日以内に返信
-
ci
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jonathanong/no-mistakes#5801 ·