-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not resolving ENV var in GitHub Actions #717
Comments
As far as I know, environment variables are not supported for configuration.
If you don't want to go this way, there would still be the possibility to pass the configuration when calling gradle. Use the |
This default value comes from the deep history of this plugin. Originally probably for Jenkins. Here Jenkins has resolved the path. |
If the default value currently works in Jenkins then nevermind. |
It does not work currently in Jenkins, from Jenkins logs I can the plugin trying to use literal path I think the culprit is this method not resolving envs: Line 34 in 56a0602
|
Describe the bug
Plugin does not resolve env vars to determine path.
If I hardcode the
sonar.dependencyCheck.htmlReportPath
as/runner/_work/MyProject/MyProject/build/reports/dependency-check-report.html
then everything works as expected.But I need to set the path in such a way that it works for all my projects, so I tried configuring the path in SonarQube like this:
But none of those worked.
I also tried setting the path via
systemProp.sonar.dependencyCheck.htmlReportPath
ingradle.properties
However, I have confirmed that it is the correct path, since I have an upload artifact step that uses that same path.
To Reproduce
Github Actions workflow steps:
Current behavior
Error:
No HTML-Report found. Please check property sonar.dependencyCheck.htmlReportPath
Expected behavior
It should resolve the env var and find the file
Versions:
The text was updated successfully, but these errors were encountered: