-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(sage-monorepo): try sonar scan workflow triggered by fork PR (#2457)
* Touch OC web app * Trigger again the workflow * Create prototype of new sonar scanner for pr * Cleanup * Cleanup * Update scanner parameters * Disable sonar scanner in main CI workflow
- Loading branch information
1 parent
37e8647
commit 78cb3b3
Showing
3 changed files
with
38 additions
and
9 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ $# -lt 1 ] | ||
then | ||
echo "The argument <project_key> must be specified." | ||
exit 1 | ||
fi | ||
|
||
PROJECT_KEY="$1" | ||
SOURCES="$2" | ||
PULL_REQUEST_KEY="$3" | ||
PULL_REQUEST_BRANCH="$4" | ||
PULL_REQUEST_BASE="${5:-main}" | ||
|
||
echo "Project key: $PROJECT_KEY" | ||
echo "Sources: $SOURCES" | ||
|
||
sonar-scanner \ | ||
-Dsonar.organization=sage-bionetworks \ | ||
-Dsonar.projectKey=$PROJECT_KEY \ | ||
-Dsonar.sources=$SOURCES \ | ||
-Dsonar.host.url=https://sonarcloud.io \ | ||
-Dsonar.python.coverage.reportPaths=coverage.xml \ | ||
-Dsonar.pullrequest.key=$PULL_REQUEST_KEY \ | ||
-Dsonar.pullrequest.branch=$PULL_REQUEST_BRANCH \ | ||
-Dsonar.pullrequest.base=$PULL_REQUEST_BASE \ |