Skip to content

Commit

Permalink
chore: attempt to skip SonarCloud run on external PR's (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
haakemon authored Aug 16, 2022
1 parent 2418a77 commit 9d4659c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
run: yarn test --coverage

- name: SonarCloud Scan
if: github.event.repository.fork == false
if: |
github.repository_owner == 'Altinn' &&
(github.event_name != 'pull_request' && github.event.repository.fork == false) ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)
with:
projectBaseDir: app-frontend
uses: SonarSource/sonarcloud-github-action@master
Expand Down

0 comments on commit 9d4659c

Please sign in to comment.