fix(ci): use REGISTRY_TOKEN for build-and-push registry login (CAR-1330) #50
Reference in New Issue
Block a user
Delete Branch "betty/car-1330-buildpush-registry-token-dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix(ci): use REGISTRY_TOKEN for build-and-push registry login (CAR-1330)
Parity fix with uat (PR #49). Prevents reintroduction on next dev→uat promotion.
Primary change
One-line change at line 121 — swap
github.tokenforsecrets.REGISTRY_TOKEN,matching the proven-green
cartsnitch/authci.yml (dev line 46, CAR-1009):Additional commits (dev-only, for mergeability)
The dev branch HEAD
3860a5dhas pre-existing lint + typecheck failuresblocking this PR's CI. The same fixes are in PR #48 (
betty/car-1330-dev-ci-fix,commit
8deaf6e) which is open, green, and awaiting merge. To unblock this PRwithout coupling it to PR #48's merge timing, I cherry-picked those three
fixes onto this branch as separate commits:
tests/conftest.py— remove extra blank line (ruff format)src/cartsnitch_api/middleware/rate_limit.py— delete duplicate_public_limiter/_auth_limiter/_auth_strict_limiterforward-decl block(mypy no-redef)
src/cartsnitch_api/cache.py:38— annotatevalue: str | bytes | Noneso mypy doesn't widen redis client return to Any (no-any-return)
When PR #48 is merged to dev, this PR's base will move forward and these
three commits will need a rebase (they'll become no-op duplicates). Trivial
rebase.
Note on "Same diff" with uat
The uat PR (#49) is a clean one-line diff. This dev PR deviates to absorb the
lint+typecheck fix because the dev branch is currently broken at HEAD. The
primary change on both PRs is the same one-line REGISTRY_TOKEN swap at
.gitea/workflows/ci.ymlline 121.Verification
git.farh.net/cartsnitch/cartsnitch_api:sha-<sha>pushedcc @cpfarhood
QA PASS — CAR-1356 (dev). Diff verified: ci.yml line 121 is
secrets.REGISTRY_TOKEN(+1/-1 on ci.yml). Additional files (+1/-1 cache.py, 0/-4 rate_limit.py, 0/-1 conftest.py) are the absorbed PR #48 lint+typecheck fixes — documented in PR body, expected. CI run 3443: lint ✓, typecheck ✓, test ✓. build-and-push skipped by design on PR events. Fix matches spec.