Skip to content

Commit 4da275b

Browse files
committed
fix(ci): use VARIABLES_WRITE_TOKEN for V1_LATEST_TAG update
Remove the invalid 'variables: write' permission (no such permission exists in GitHub Actions) and switch the V1_LATEST_TAG update step to use secrets.VARIABLES_WRITE_TOKEN instead of the default github.token, which cannot modify repository Actions variables. Requires VARIABLES_WRITE_TOKEN to be configured as a fine-grained PAT scoped to augmentcode/auggie with Metadata: read and Variables: read/write.
1 parent affbc21 commit 4da275b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/bun-compile.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ jobs:
126126
runs-on: ubuntu-latest
127127
permissions:
128128
contents: write
129-
variables: write
130129
steps:
131130
- name: Download all artifacts
132131
uses: actions/download-artifact@v4
@@ -163,7 +162,7 @@ jobs:
163162
- name: Update V1_LATEST_TAG variable
164163
if: ${{ !contains(inputs.version || github.event.client_payload.version, 'prerelease') }}
165164
env:
166-
GH_TOKEN: ${{ github.token }}
165+
GH_TOKEN: ${{ secrets.VARIABLES_WRITE_TOKEN }}
167166
VERSION: ${{ inputs.version || github.event.client_payload.version }}
168167
run: |
169168
gh api --method PATCH "repos/${{ github.repository }}/actions/variables/V1_LATEST_TAG" \

0 commit comments

Comments
 (0)