Use encrypted tokens
I encrypt a token (a SonarCloud token) using AppVeyor encryption tool (https://ci.appveyor.com/tools/encrypt), and declare it as the following:
environment:
sonartoken:
secure: zx9FQl2yXcPb8X7A4BqN753h1TFSuHioq13TFRwQk04/1cSxEFaqR1j+UAuJhyT7
Then I use it as the following (in the same appveyor.yml file):
- MSBuild.SonarQube.Runner.exe end /d:"sonar.login=%sonartoken%"
But then Sonar complains the token being invalid.
I have tried the followings too:
- MSBuild.SonarQube.Runner.exe end /d:"sonar.login=$env:sonartoken"
- ps: MSBuild.SonarQube.Runner.exe end /d:"sonar.login=$env:sonartoken"
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by Ilya Finkelshte... on 14 Jan, 2018 02:49 PM
Vahid,
You are trying using secure variables in pull request. However secure variables are not available in Pull Requests. For open source projects you can use "Enable secure variables in Pull Requests from the same repository only" option available in the UI, in project General Settings.
Ilya.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:26 AM.