Update release workflow to grant write permissions for releases and replace hardcoded GitHub token with environment variable for improved security.
Release / Release (push) Failing after 3s
Release / Release (push) Failing after 3s
This commit is contained in:
1 parent
39d68b8d4d
commit
c8f74700d6
1 file changed
+2
-2
@@ -7,6 +7,7 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
releases: write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@@ -28,13 +29,12 @@ jobs:
|
||||
with:
|
||||
config: cliff.toml
|
||||
args: --latest --strip header
|
||||
github_token: ${{ secrets.PAT_GITHUB }}
|
||||
github_token: $GITHUB_TOKEN
|
||||
env:
|
||||
OUTPUT: release-notes.md
|
||||
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_TOKEN }}
|
||||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') }}
|
||||
body_path: release-notes.md
|
||||
Reference in new issue
Block a user