From c48a08bcd3264c5743fb70e2189b8578443394c6 Mon Sep 17 00:00:00 2001 From: Mark Barnes Date: Fri, 23 Jan 2026 18:31:38 -0800 Subject: [PATCH] GHCR fix --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c90382c..ce62fc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,9 @@ on: jobs: test: runs-on: ubuntu-latest + permissions: + contents: read + packages: write strategy: matrix: python-version: ['3.9', '3.12'] @@ -42,9 +45,6 @@ jobs: - name: Build and push Docker image if: github.ref == 'refs/heads/master' && github.event_name == 'push' && matrix.python-version == '3.12' - env: - GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }} - GHCR_PASSWORD: ${{ secrets.GHCR_PASSWORD }} run: | echo "Starting Docker deployment to GHCR for sigprofilersuite..." @@ -56,7 +56,7 @@ jobs: echo "Building version: $VERSION_TAG for image: $IMAGE_NAME" - echo "$GHCR_PASSWORD" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin + echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin docker build \ --build-arg COMMIT_SHA=${{ github.sha }} \