Skip to content

Commit 7aca161

Browse files
committed
Fix release workflow authentication
- Replace AUTO_TOKEN with built-in GITHUB_TOKEN - Add necessary permissions for release creation - This fixes the 'Bad credentials' error in GitHub Actions
1 parent 140b8cf commit 7aca161

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ env:
1212
jobs:
1313
auto-release:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
issues: write
1519
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
1620
steps:
1721
- uses: actions/checkout@v3
@@ -40,4 +44,4 @@ jobs:
4044
run: |
4145
~/auto shipit -vv
4246
env:
43-
GH_TOKEN: ${{ secrets.AUTO_TOKEN }}
47+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)