From 042064458b59d6ca14a179f02eada2f279749bfa Mon Sep 17 00:00:00 2001 From: Khalil Date: Sat, 4 Jul 2026 10:58:34 +0000 Subject: [PATCH] Fix docker login token permissions --- .gitea/workflows/deploy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6bc5b15..6838996 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -43,6 +43,9 @@ jobs: build-push-deploy: runs-on: ubuntu-latest needs: scan + permissions: + packages: write + contents: read steps: - name: Checkout Code uses: actions/checkout@v4 @@ -50,7 +53,7 @@ jobs: fetch-depth: 0 - name: Log in to Gitea Container Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin + run: echo "${{ gitea.token }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin - name: Build and Push API run: |