Skip to content

Commit 50fc422

Browse files
committed
ci: Use GITHUB_TOKEN with contents:write permission instead of PAT
1 parent 5929543 commit 50fc422

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/bump-version.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
branches:
55
- master
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
test:
912
name: Bump Version
@@ -21,7 +24,7 @@ jobs:
2124
uses: actions/create-release@v1
2225
if: ${{ steps.next_version.outputs.version != steps.latest_version.outputs.version }}
2326
env:
24-
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2528
with:
2629
tag_name: "v${{ steps.next_version.outputs.version }}"
2730
body: "${{ steps.markdown_log.outputs.changelog }}"

0 commit comments

Comments
 (0)