Skip to content

Commit 909a0b2

Browse files
committed
oh come on, it shouldn't be that hard to have the correct token to update the very workflow file that started the whole thing !
1 parent bab1079 commit 909a0b2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/on_workflow_dispatch_perform_maven_release.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ on:
1111
required: true
1212
default: "0.2.2"
1313

14+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
1420
jobs:
1521
build:
1622

@@ -70,7 +76,8 @@ jobs:
7076
- name: Build with Maven
7177
run: mvn --no-transfer-progress -B release:prepare release:perform -Prelease --file pom.xml
7278
env:
73-
GITHUB_TOKEN: ${{ github.token }}
79+
# Secret is changed to have the permission to update the workflow file
80+
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_GITHUB }}
7481
- name: Get created tag name (for GitHuub release creation)
7582
id: tag
7683
run: echo "CREATED_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)