Skip to content

Commit 4fb1675

Browse files
committed
Use context var for Sonar
Even though context vars are not properly escaped for shells in this context. See https://community.sonarsource.com/t/security-advisory-sonarqube-scanner-github-action/147696
1 parent ef31956 commit 4fb1675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sonar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
with:
5252
args: >-
5353
--define project.settings=.sonar.properties
54-
--define sonar.cfamily.compile-commands="$RUNNER_TEMP/sonar/compile_commands.json"
54+
--define sonar.cfamily.compile-commands="${{ runner.temp }}/sonar/compile_commands.json"

0 commit comments

Comments
 (0)