1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

sonarExecuteScan: run sonar image as root (#4097)

This commit is contained in:
Vyacheslav Starostin
2022-11-01 20:51:25 +06:00
committed by GitHub
parent e9c366392e
commit a84b9d65ac
2 changed files with 4 additions and 1 deletions

View File

@@ -564,7 +564,7 @@ func sonarExecuteScanMetadata() config.StepData {
},
},
Containers: []config.Container{
{Name: "sonar", Image: "sonarsource/sonar-scanner-cli:4.7"},
{Name: "sonar", Image: "sonarsource/sonar-scanner-cli:4.7", Options: []config.Option{{Name: "-u", Value: "0"}}},
},
Outputs: config.StepOutputs{
Resources: []config.StepResources{

View File

@@ -297,3 +297,6 @@ spec:
containers:
- name: sonar
image: sonarsource/sonar-scanner-cli:4.7
options:
- name: -u
value: "0"