Skip to content

Commit

Permalink
Add check for organization before running sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
vidi42 committed May 24, 2024
1 parent 7a3ef46 commit 9030262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Sonar - Analyze
# Dependabot has no access to the SONAR_TOKEN secret, so we need to skip sonar.
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' && github.repository_owner == 'ehrbase' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
Expand Down

0 comments on commit 9030262

Please sign in to comment.