Skip to content

Commit 9d4659c

Browse files
authoredAug 16, 2022
chore: attempt to skip SonarCloud run on external PR's (#387)
1 parent 2418a77 commit 9d4659c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎.github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
run: yarn test --coverage
4242

4343
- name: SonarCloud Scan
44-
if: github.event.repository.fork == false
44+
if: |
45+
github.repository_owner == 'Altinn' &&
46+
(github.event_name != 'pull_request' && github.event.repository.fork == false) ||
47+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)
4548
with:
4649
projectBaseDir: app-frontend
4750
uses: SonarSource/sonarcloud-github-action@master

0 commit comments

Comments
 (0)
Please sign in to comment.