-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCSCANGHA-25 Replace the Docker action by a composite action forwardi…
…ng to the SonarQube action
- Loading branch information
1 parent
982992a
commit 48d9e10
Showing
10 changed files
with
76 additions
and
188 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,38 @@ | ||
name: SonarCloud Scan | ||
description: > | ||
Scan your code with SonarCloud to detect bugs, vulnerabilities and code smells | ||
in 26+ programming languages. | ||
Scan your code with SonarQube Cloud to detect coding issues in 30+ | ||
languages, frameworks, and IaC platforms. | ||
The solution also provides fix recommendations leveraging AI with | ||
Sonar's AI CodeFix capability. (Formerly SonarCloud) | ||
branding: | ||
icon: check | ||
color: green | ||
runs: | ||
using: docker | ||
image: Dockerfile | ||
entrypoint: "/entrypoint.sh" | ||
post-entrypoint: "/cleanup.sh" | ||
inputs: | ||
args: | ||
description: Additional arguments to the sonarcloud scanner | ||
description: Additional arguments to the Sonar Scanner CLI | ||
required: false | ||
projectBaseDir: | ||
description: Set the sonar.projectBaseDir analysis property | ||
required: false | ||
default: . | ||
scannerVersion: | ||
description: Version of the Sonar Scanner CLI to use | ||
required: false | ||
default: 6.2.1.4610 | ||
scannerBinariesUrl: | ||
description: URL to download the Sonar Scanner CLI binaries from | ||
required: false | ||
default: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Deprecation warning | ||
shell: bash | ||
run: | | ||
echo "::warning title=SonarScanner::This action is deprecated and will be removed in a future release. Please use the sonarqube-scan-action action instead. The sonarqube-scan-action is a drop-in replacement for this action." | ||
- name: SonarQube Cloud Scan | ||
uses: SonarSource/[email protected] | ||
with: | ||
args: ${{ inputs.args }} | ||
projectBaseDir: ${{ inputs.projectBaseDir }} | ||
scannerVersion: ${{ inputs.scannerVersion }} | ||
scannerBinariesUrl: ${{ inputs.scannerBinariesUrl }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
#!/bin/bash | ||
|
||
error() { echo -e "\\e[31m✗ $*\\e[0m"; } | ||
|
||
if [ -f $1 ]; then | ||
error "File '$1' found" | ||
exit 1 | ||
fi |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
48d9e10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Antonio,
We are getting
EACCES: permission denied, unlink /.../.scannerwork/report-task.txt
on self-hosted runners. I see that you are trying to get rid of docker building on your end, but absence of cleanup.sh may cause a trouble with removing job remains for not ephemeral agents.For now, we are going to set fix version of sonarcloud-github-action in our pipelines, but wanted to let you know.
D.