Skip to content

Commit

Permalink
ci: Use GITHUB_TOKEN with contents:write permission instead of PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
PSanetra committed Dec 27, 2024
1 parent 5929543 commit 50fc422
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- master

permissions:
contents: write

jobs:
test:
name: Bump Version
Expand All @@ -21,7 +24,7 @@ jobs:
uses: actions/create-release@v1
if: ${{ steps.next_version.outputs.version != steps.latest_version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ steps.next_version.outputs.version }}"
body: "${{ steps.markdown_log.outputs.changelog }}"
Expand Down

0 comments on commit 50fc422

Please sign in to comment.