Skip to content

Commit 2186938

Browse files
committed
fix: update token comment to clarify usage of PAT for package access
1 parent d4bd36a commit 2186938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-alpha.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
BASE_VERSION=$(echo "$BASE_VERSION" | sed 's/-.*//')
4141
IMAGE_NAME=ghcr.io/${{ github.repository }}/podverse-api
4242
43-
# Get the latest alpha tag from GHCR
44-
TOKEN="${{ secrets.GITHUB_TOKEN }}"
43+
# Use a PAT with read:packages scope
44+
TOKEN="${{ secrets.GHCR_PAT }}"
4545
TAGS=$(curl -s -H "Authorization: Bearer $TOKEN" \
4646
"https://ghcr.io/v2/${{ github.repository }}/podverse-api/tags/list" | jq -r '.tags[]' | grep "alpha" || true)
4747

0 commit comments

Comments
 (0)