Skip to content

Commit 8a5fb34

Browse files
fix: update GITHUB_TOKEN usage in create-release workflow
- Replace the token reference in the create-release workflow from step output to secrets for improved security and reliability
1 parent 13ebf6f commit 8a5fb34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Get latest version
4545
id: get_version
4646
env:
47-
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
run: |
4949
# Get the latest version tag
5050
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
@@ -81,7 +81,7 @@ jobs:
8181
echo "Release notes generated"
8282
- name: Create Release
8383
env:
84-
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8585
NEW_VERSION: ${{ env.NEW_VERSION }}
8686
DOCKERLIKE_RELEASE_NAME: ${{ env.DOCKERLIKE_RELEASE_NAME }}
8787
BRANCH: ${{ github.ref }}

0 commit comments

Comments
 (0)