Skip to content

Commit

Permalink
Skip sonar cloud scan if no SONAR_TOKEN is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-fritz committed Feb 27, 2023
1 parent 83dd219 commit f99bbf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
run: make ci-check

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: github.event_name != 'pull_request'
uses: SonarSource/sonarcloud-github-action@v1.8
if: (github.event_name != 'pull_request' && env.SONAR_TOKEN != '')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit f99bbf0

Please sign in to comment.