Skip to content

Commit 45d1a8a

Browse files
committed
workflow: Remove token on test builds as not needed
1 parent 7356fba commit 45d1a8a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/workflows/maven-publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424

2525
- name: Build with Maven
2626
run: mvn -B package --settings $GITHUB_WORKSPACE/settings.xml --file pom.xml
27-
env:
28-
GITHUB_TOKEN: ${{ github.token }}
2927

3028
- name: Publish to GitHub Packages Apache Maven
3129
run: mvn deploy --settings $GITHUB_WORKSPACE/settings.xml -P github

.github/workflows/maven-test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ jobs:
2626
settings-path: ${{ github.workspace }} # location for the settings.xml file
2727

2828
- name: Build with Maven
29-
run: mvn -B package --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml
30-
env:
31-
GITHUB_TOKEN: ${{ github.token }}
29+
run: mvn -B package --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml

0 commit comments

Comments
 (0)