Skip to content

Commit

Permalink
Sonar Cloud - update token
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJMiller committed Oct 22, 2024
1 parent cc3ecf6 commit d6ff407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/brightspot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ jobs:
build:
name: "Build"
runs-on: ${{ inputs.runs-on }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# Map the job outputs to step outputs
outputs:
container-build-tag: ${{ steps.build-container.outputs.container-build-tag }}
Expand Down Expand Up @@ -184,10 +186,9 @@ jobs:
report_paths: '**/build/test-results/test/TEST-*.xml'

- name: SonarCloud Code Version
if: ${{ inputs.sonar-cloud-enabled && secrets.SONAR_TOKEN != '' && startsWith(github.ref, 'refs/tags/v') && github.actor != 'dependabot[bot]' }}
if: ${{ inputs.sonar-cloud-enabled && env.SONAR_TOKEN != '' && startsWith(github.ref, 'refs/tags/v') && github.actor != 'dependabot[bot]' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
JAVA_HOME=$JAVA_HOME_17_X64
version=$(git describe --tags --match "v[0-9]*" --abbrev=0 HEAD || echo "0")
Expand All @@ -196,10 +197,9 @@ jobs:
./gradlew -x test sonarqube -i -Dsonar.projectVersion="${version}"
- name: SonarCloud Code Analysis
if: ${{ inputs.sonar-cloud-enabled && secrets.SONAR_TOKEN != '' && startsWith(github.ref, 'refs/tags/v') != true && github.actor != 'dependabot[bot]' }}
if: ${{ inputs.sonar-cloud-enabled && env.SONAR_TOKEN != '' && startsWith(github.ref, 'refs/tags/v') != true && github.actor != 'dependabot[bot]' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
JAVA_HOME=$JAVA_HOME_17_X64
./gradlew -x test build sonar --info
Expand Down

0 comments on commit d6ff407

Please sign in to comment.