Skip to content

ci: remove the last unverified download (bats-action in agent-harness) #22

Closed
furedea/agent-harness
#207

Description

@furedea-agent

概要

アーカイブされていない furedea の全 repo(template を含む)で,CI と CI が動かすスクリプトを点検し,中身がハッシュで固定されていないダウンロードを探した.残っていたのは 1 か所だけだった.

repo 場所 取ってくるもの 固定されていない理由 直し方
agent-harness .github/workflows/codex-conformance.yml:43 bats(bats-core/bats-action) action は SHA で固定しているが,中で bats の tag の tarball をハッシュなしで取ってくる dotfiles#421 と同じく,flake の devShell から bats を使う

受け入れ条件

  • agent-harness の codex-conformance.yml から bats-core/bats-action をなくし,flake.lock で固定した bats を使う
点検の範囲と結果
  • 見たもの:.github/**/*.yml と scripts/*.sh
  • 探したもの:SHA で固定していない uses:,curl | sh,チェックサムを確かめない release や archive のダウンロード,latest,raw.githubusercontent.com の main / master,実行時にツールを取ってくる action(autocorrect-action,bats-action,setup-shfmt,raven-actions/actionlint,reviewdog)
  • 直し済みで対象外:dotfiles の format 系と bats(dotfiles#413,#421),agent-config の bootstrap(agent-config#111),reusable-workflows の actionlint(feat(gha-lint): remove the workflow-template-dir input and pin every tool version #16)
  • 許容したもの:cachix/install-nix-action は,action の版ごとに固定された URL から Nix のインストーラーを取る.ハッシュの確認はないが,取る先は action の SHA で決まる.必要なら install_url とハッシュの固定を別に検討する
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions