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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
releases: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@@ -28,13 +29,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
config: cliff.toml
|
config: cliff.toml
|
||||||
args: --latest --strip header
|
args: --latest --strip header
|
||||||
github_token: ${{ secrets.PAT_GITHUB }}
|
github_token: $GITHUB_TOKEN
|
||||||
env:
|
env:
|
||||||
OUTPUT: release-notes.md
|
OUTPUT: release-notes.md
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: softprops/action-gh-release@v3
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
|
||||||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') }}
|
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') }}
|
||||||
body_path: release-notes.md
|
body_path: release-notes.md
|
||||||
Reference in new issue
Block a user