File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,9 @@ jobs:
179
179
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
180
180
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
181
181
shell : powershell
182
+ env :
183
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
182
184
run : |
183
- .\.sonar\scanner\dotnet-sonarscanner begin /k:"abhinavminhas_QueryDB" /o:"abhinavminhas" /d:sonar.token="${{ secrets. SONAR_TOKEN }} " /d:sonar.host.url="https://sonarcloud.io"
185
+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"abhinavminhas_QueryDB" /o:"abhinavminhas" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io"
184
186
dotnet build
185
- .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets. SONAR_TOKEN }} "
187
+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="$SONAR_TOKEN"
Original file line number Diff line number Diff line change 39
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
40
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
41
41
shell : powershell
42
+ env :
43
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
42
44
run : |
43
- .\.sonar\scanner\dotnet-sonarscanner begin /k:"abhinavminhas_QueryDB" /o:"abhinavminhas" /d:sonar.token="${{ secrets. SONAR_TOKEN }} " /d:sonar.host.url="https://sonarcloud.io"
45
+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"abhinavminhas_QueryDB" /o:"abhinavminhas" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io"
44
46
dotnet build
45
- .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets. SONAR_TOKEN }} "
47
+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="$SONAR_TOKEN"
You can’t perform that action at this time.
0 commit comments