From 22c838eafe2c2fb2ff0ca475f27a5a208882275c Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sat, 28 Nov 2026 11:48:48 +0100 Subject: [PATCH] ci: use the job token for package pushes The workflow already requests packages: write, so the built-in Gitea token can log in to the container and Helm registries. This avoids a repository secret that does not exist yet. --- .gitea/workflows/ci.yml | 4 ++-- .gitea/workflows/release.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e110fbf..020bf14 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -168,7 +168,7 @@ jobs: with: registry: https://git.vhaudiquet.fr username: ${{ gitea.actor }} - password: ${{ secrets.PACKAGES_TOKEN }} + password: ${{ secrets.GITEA_TOKEN }} - name: Build and push uses: docker/build-push-action@v6 @@ -206,7 +206,7 @@ jobs: - name: Push the chart to the Gitea Helm registry run: | - TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n') + TOKEN=$(echo -n "${{ secrets.GITEA_TOKEN }}" | tr -d '\n') curl --fail --user "${{ gitea.actor }}:${TOKEN}" \ -X POST \ --upload-file rhema-together-*.tgz \ diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 7c6c36b..ba140b1 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -47,7 +47,7 @@ jobs: with: registry: https://git.vhaudiquet.fr username: ${{ gitea.actor }} - password: ${{ secrets.PACKAGES_TOKEN }} + password: ${{ secrets.GITEA_TOKEN }} - name: Compute the release version id: ver @@ -88,7 +88,7 @@ jobs: - name: Push the chart to the Gitea Helm registry run: | - TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n') + TOKEN=$(echo -n "${{ secrets.GITEA_TOKEN }}" | tr -d '\n') curl --fail --user "${{ gitea.actor }}:${TOKEN}" \ -X POST \ --upload-file rhema-together-*.tgz \