Skip to content

Commit bb0006a

Browse files
committed
Fix workflow: Properly authenticate GitHub Actions for tag push
- Add GITHUB_TOKEN to checkout step - Configure git with github-actions[bot] identity - Use token-authenticated HTTPS URL for git push - Resolves 403 permission denied error
1 parent 3cf5099 commit bb0006a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout repository
1212
uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
1315

1416
- name: Create skill directory structure
1517
run: |
@@ -33,12 +35,11 @@ jobs:
3335

3436
- name: Create tag
3537
run: |
36-
git config user.name "github-actions"
37-
git config user.email "github-actions@github.com"
38+
git config user.name "github-actions[bot]"
39+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3840
git tag -f latest
41+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
3942
git push origin -f --tags
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4243
4344
- name: Create Release
4445
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)