Files
apf_portal/.gitea
Julien Gautier 4bd3b4a19f
CI / commits (pull_request) Successful in 1m45s
CI / check (pull_request) Successful in 1m54s
CI / a11y (pull_request) Successful in 1m47s
CI / perf (pull_request) Successful in 3m8s
CI / scan (pull_request) Failing after 7m10s
fix(ci): authenticate trivy-action's github.com clone
On cache miss, `aquasecurity/trivy-action@master` falls back to
`git clone https://github.com/aquasecurity/trivy` to fetch its
install script. The act_runner cache server is currently
unreachable from job containers (documented as "Cache server
(deferred)" in infra/README.md), so every run is a cache miss, so
every run hits the github.com anonymous rate limit and fails with:

    fatal: could not read Username for 'https://github.com';:
    terminal prompts disabled

Pass `GITHUBCOM_TOKEN` (the same zero-scope github.com PAT we use
for Renovate) as `GITHUB_TOKEN` env on the step. The action picks
it up automatically and authenticates the clone, lifting the rate
limit from 60 req/h anonymous to 5 000 req/h authenticated.

This unblocks the `scan` job. The cache server fix would also
unblock it (no fall-back clone in the first place), but is a
separate, larger infra change still pending.
2026-05-06 23:40:17 +02:00
..