From 0f33e1e207ff35c74bae83d4909f925a90ede68c Mon Sep 17 00:00:00 2001 From: Emi Griffith Date: Sat, 1 Aug 2026 11:14:54 -0700 Subject: [PATCH] build-push: remove empty ${{ }} from the login step comment --- .forgejo/workflows/build-push.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build-push.yml b/.forgejo/workflows/build-push.yml index fa2d1b8..034b1bc 100644 --- a/.forgejo/workflows/build-push.yml +++ b/.forgejo/workflows/build-push.yml @@ -49,7 +49,6 @@ jobs: env: REGISTRY: https://${{ vars.REGISTRY_HOST }} - REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} steps: - uses: actions/checkout@v4 @@ -111,6 +110,8 @@ jobs: - name: Log in to the Forgejo registry if: steps.image.outputs.changed == 'true' + env: + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} run: | # NOT secrets.GITHUB_TOKEN -- Forgejo's per-job auto-injected token can # never push to the container registry (a known Forgejo limitation, @@ -130,7 +131,7 @@ jobs: # credential that was in fact valid. Strip first, echo never. # # The token also goes through the ENVIRONMENT rather than being - # interpolated into the script text. `${{ }}` is substituted before bash + # interpolated into the script text. An expression is substituted before bash # parses the line, so a value containing a quote or newline would change # the shape of the command itself rather than just its arguments. tok=$(printf '%s' "$REGISTRY_TOKEN" | tr -d ' \t\r\n')