ci: install Vale through nolte/gh-plumbing/actions/setup-vale

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

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

評価

難易度
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-version with the version from .tool-versions and its SHA-256.
  • Replace the inline install step with the action, pinned by digest. It needs no sudo.
  • Keep .tool-versions and .vale-version in step; gh-plumbing's scripts/vale_version.py is an example of a check for that.
主要言語
HCL
スター
0
フォーク
0
平均マージ
23分
マージ済み PR(30日)
3

環境構築

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

はじめの一歩

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

nolte/terraform-github-bootstrap のほかの issue

nolte/terraform-github-bootstrap の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

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

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