Skip to content

Commit 332383e

Browse files
committed
fix: use github token in right places (GITHUB_TOKEN or arg)
Signed-off-by: jmeridth <[email protected]>
1 parent 0f150b9 commit 332383e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/major-version-updater.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
{ echo "tag=${tag}"; echo "version=${version}"; echo "major=${major}"; } >> "$GITHUB_OUTPUT"
3333
- name: force update major tag
3434
env:
35-
GH_TOKEN: ${{ secrets.github-token }}
35+
GITHUB_TOKEN: ${{ secrets.github-token }}
3636
run: |
3737
git tag -f v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }}
3838
git push -f origin v${{ steps.version.outputs.major }}

.github/workflows/release-discussion.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ jobs:
3838
exit 1
3939
- name: Create an Announcement Discussion for Release
4040
uses: abirismyname/create-discussion@c2b7c825241769dda523865ae444a879f6bbd0e0
41-
env:
42-
GH_TOKEN: ${{ secrets.github-token }}
4341
with:
4442
title: ${{ inputs.full-tag }}
4543
body: ${{ inputs.body }}
4644
repository-id: ${{ env.DISCUSSION_REPOSITORY_ID }}
4745
category-id: ${{ env.DISCUSSION_CATEGORY_ID }}
46+
github-token: ${{ secrets.github-token }}

.github/workflows/release-image.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ jobs:
6969
subject-name: ${{ env.IMAGE_REGISTRY }}/${{ inputs.image-name}}
7070
subject-digest: ${{ steps.push.outputs.digest }}
7171
push-to-registry: true
72+
github-token: ${{ secrets.github-token }}

0 commit comments

Comments
 (0)