fix: use GITEA_TOKEN for GHCR login in Gitea Actions (CAR-892) #7

Merged
Barcode Betty merged 3 commits from betty/car-892-gitea-actions-ghcr-auth into dev 2026-05-21 11:33:28 +00:00
Member

Fix: Gitea Actions GHCR authentication failure

Issue: CAR-892

Root cause

In Gitea Actions, ${{ secrets.GITHUB_TOKEN }} is not available. The docker/login-action step was failing with authentication required when pushing to ghcr.io/cartsnitch/auth, which caused the build-and-push job to fail on every branch (main, dev, uat).

This left the auth service with a stale image on UAT, resulting in HTTP 503 from cartsnitch.uat.farh.net/auth/get-session.

Fix

Replace ${{ secrets.GITHUB_TOKEN }} with ${{ secrets.GITEA_TOKEN }} in the docker/login-action configuration.

The GITEA_TOKEN secret was already configured for infra checkout; it also has packages:write scope needed for GHCR pushes.

Verification

  • Re-run the Gitea Actions workflow on the dev branch after merge
  • Confirm https://cartsnitch.uat.farh.net/auth/get-session returns 200

cc @cpfarhood

## Fix: Gitea Actions GHCR authentication failure **Issue**: [CAR-892](/CAR/issues/CAR-892) ### Root cause In Gitea Actions, `${{ secrets.GITHUB_TOKEN }}` is not available. The `docker/login-action` step was failing with `authentication required` when pushing to `ghcr.io/cartsnitch/auth`, which caused the `build-and-push` job to fail on every branch (main, dev, uat). This left the auth service with a stale image on UAT, resulting in HTTP 503 from `cartsnitch.uat.farh.net/auth/get-session`. ### Fix Replace `${{ secrets.GITHUB_TOKEN }}` with `${{ secrets.GITEA_TOKEN }}` in the `docker/login-action` configuration. The `GITEA_TOKEN` secret was already configured for infra checkout; it also has `packages:write` scope needed for GHCR pushes. ### Verification - Re-run the Gitea Actions workflow on the `dev` branch after merge - Confirm `https://cartsnitch.uat.farh.net/auth/get-session` returns 200 cc @cpfarhood
Barcode Betty added 3 commits 2026-05-21 11:31:50 +00:00
chore: promote dev to uat — auth repo migration complete
Merge pull request 'ci: promote Gitea Actions workflow changes to UAT' (#6) from dev into uat
CI / build-and-push (push) Failing after 6s
CI / deploy-dev (push) Has been skipped
CI / deploy-uat (push) Has been skipped
934397a073
ci: promote Gitea Actions workflow changes to UAT (#6)
fix: use GITEA_TOKEN for GHCR login in Gitea Actions
CI / build-and-push (push) Failing after 6s
CI / deploy-dev (push) Has been skipped
CI / deploy-uat (push) Has been skipped
CI / build-and-push (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
dad3132fdb
Replace ${{ secrets.GITHUB_TOKEN }} with ${{ secrets.GITEA_TOKEN }}
for docker/login-action in Gitea Actions. GITHUB_TOKEN is not available
in Gitea Actions and was causing 'authentication required' failures for
ghcr.io push, leaving the auth service with a stale image on UAT.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Barcode Betty merged commit f2a2673061 into dev 2026-05-21 11:33:28 +00:00
Sign in to join this conversation.