Skip to content

Task: CI tool installs fail whenever GitHub's release downloads return 5xx — cache the assets, retry, verify against pinned sha256 #116

Open

Description

@TzuH-Hsu

Summary

make ci-tools downloads actionlint, gitleaks and lychee from GitHub's release downloads with a single curl and no cache, so when those downloads return 5xx every pull request's ci job fails. Cache the verified release assets between runs, retry every download, and verify each asset against a sha256 pinned in the repository.

Subtype

chore — Maintenance

Context

GitHub's release downloads intermittently return 503/504, sometimes for hours. scripts/install-ci-tools.sh runs curl -fsSLO for the asset and for the release's checksum file, with no retry, and nothing is kept between runs, so an outage of the release host blocks every pull request until it ends. Adopter repositories share the same installer and the same failure.

Caching alone is not enough: if the checksum file is cached or fetched next to the asset, whoever can write a cache entry can write a matching checksum file. The expected sha256 has to live in the repository, next to the version pin.

Acceptance criteria

  • scripts/install-ci-tools.sh has a <TOOL>_SHA256 pin next to each tarball tool's version pin and verifies every asset, cached or downloaded, against it; the release's checksum file is no longer fetched
  • Every download retries (curl --retry with --retry-all-errors)
  • With CI_TOOLS_CACHE_DIR set, a cached asset that matches its pin is used without a download; one that does not match is deleted and downloaded again; only verified assets are stored
  • ci.yml restores and saves that directory with actions/cache (SHA-pinned, exact key only); maintenance.yml restores only
  • A test under make check runs the installer against a fake curl, including a tampered cache entry
  • make verify passes; docs (docs/setup/runners.md, skills/github-actions-hygiene) describe the cache and the sha256 pins

Priority

p2 — Important, scheduled

Area

  • area:docs — Documentation and guides
  • area:skills — Skills knowledge modules
  • area:ci — CI workflows and automation
  • area:governance — Labels, templates, metadata contract, process

Activity

  1. added
    area:ci
    priority:p2
    type:chore
    on Nov 12, 2026
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

    area:cipriority:p2type:chore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions