fix: allow registry fallback in supported CLI versions

The action currently pins every recent CLI to GHCR, which disables the
CLI's registry fallback and leaves image pulls exposed to GHCR
throttling.

Use the installed CLI version to keep the GHCR default for versions
before v2.108.0 and allow fallback for newer versions. Preserve a
caller's explicit registry choice.
This commit is contained in:
Julien Goux
2026-09-24 00:20:56 +02:00
committed by GitHub
parent 3c2f5e2ae3
commit afb1b15109
3 changed files with 91 additions and 1 deletions

View File

@@ -47,6 +47,8 @@ jobs:
exclude:
- version: 1.178.2
pg_major: 17
- version: latest
pg_major: 14
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with: