-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable SONAR scan in PRs created from forks (#591)
* Disable the SONAR scan in PRs created from forks. It won't be able to run because the GHA can't get the secrets for PRs created from a fork. * The failure creates noise in various dashboards because we see the red "x" by the PR. * Mark some locally flaky tests to be skipped --------- Co-authored-by: Adam Babik <[email protected]> Co-authored-by: Sebastian Tiedtke <[email protected]>
- Loading branch information
1 parent
64df80f
commit cd962ab
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,10 @@ jobs: | |
|
||
- name: SonarCloud Scan | ||
uses: SonarSource/[email protected] | ||
# Skip this test if the PR is created from a fork. | ||
# If its created from a fork the PR won't be able to fetch the secrets so | ||
# the step will fail. | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters