Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Commit 6975672

Browse files
committed
fix(ci): use GITHUB_TOKEN instead of PAT to fix release workflow
1 parent 146099b commit 6975672

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/bumpversion.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,28 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
bump_version:
1013
runs-on: ubuntu-latest
11-
name: "Bump version and create changelog with commitizen"
1214
steps:
1315
- name: Check out
1416
uses: actions/checkout@v2
1517
with:
1618
fetch-depth: 0
19+
1720
- name: Create bump and changelog
1821
uses: commitizen-tools/commitizen-action@master
1922
with:
20-
github_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
2124
changelog_increment_filename: body.md
25+
2226
- name: Release
2327
uses: softprops/action-gh-release@v1
2428
with:
2529
body_path: "body.md"
2630
tag_name: "${{ env.REVISION }}"
2731
env:
28-
GITHUB_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)