Skip to content

Commit

Permalink
move token to env
Browse files Browse the repository at this point in the history
  • Loading branch information
leibi-actico committed Dec 8, 2023
1 parent d9a4a3a commit bba3ebf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
distribution: 'graalvm'
- name: Build with Gradle
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
arguments: build sonar -Preckon.stage=final -Preckon.scope=patch reckonTagCreate
- name: Push git tag
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pullrequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ jobs:
distribution: 'graalvm'
- name: Build with Gradle
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
GPR_USERNAME: ${{ github.actor }}
GPR_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

arguments: build sonar

0 comments on commit bba3ebf

Please sign in to comment.