Skip to content
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

SonarQube not finding Dependency-Check Reports #127

Closed
5 tasks done
Windos opened this issue Nov 7, 2023 · 1 comment · Fixed by #128
Closed
5 tasks done

SonarQube not finding Dependency-Check Reports #127

Windos opened this issue Nov 7, 2023 · 1 comment · Fixed by #128
Assignees
Labels
Bug Issues where something has happened which was not expected or intended
Milestone

Comments

@Windos
Copy link
Member

Windos commented Nov 7, 2023

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

When running a build that includes both SonarQube and Dependency-Check task, SonarQube does not find the reports generated by Dependency-Check. It appears that the path is relative and at some point in the build the working directory changes such that the relative path to these reports changes.

For example, with the relative path of ./code_drop/DependencyCheckReports the following output is found when the Finalise-SonarQube task runs:

image

What is Expected?

That the Dependency-Check reports are generated and the Finalise-SonarQube task is able to collect and upload them.

How Did You Get This To Happen?

Run the build, with SonarQube environment variables set:

.\build.bat --verbosity=diagnostic --target=CI --testExecutionType=none --shouldRunAnalyze=false --shouldRunIlMerge=false --shouldObfuscateOutputAssemblies=false --shouldRunChocolatey=false --shouldRunNuGet=false --shouldRunSonarQube=true --shouldRunDependencyCheck=true

System Details

N/A

Installed Packages

N/A

Output Log

N/A

Additional Context

Related to #110

@Windos Windos added the Bug Issues where something has happened which was not expected or intended label Nov 7, 2023
@Windos Windos self-assigned this Nov 7, 2023
Windos added a commit to Windos/Chocolatey.Cake.Recipe that referenced this issue Nov 7, 2023
gep13 pushed a commit to Windos/Chocolatey.Cake.Recipe that referenced this issue Jan 4, 2024
@gep13 gep13 added this to the 0.26.0 milestone Jan 4, 2024
@gep13 gep13 closed this as completed in #128 Jan 4, 2024
gep13 added a commit that referenced this issue Jan 4, 2024
…path

(#127)(ENGTASKS-3098) Use absolute paths for Dependency-Check generated reports
gep13 added a commit that referenced this issue Jan 5, 2024
* release/0.26.0:
  (maint) Remove unused property
  (#129) Change credential name
  (#129) Update to latest GitReleaseManager
  (#129) Adjust tasks to know when running on GitLab
  (#129) Remove interaction between Tasks
  (#129) Remove unnecessary tasks
  (maint) Remove whitespace and fix formatting
  (#32) Add PSScriptAnalyzer
  (#127) Make Dependency-Check paths absolute
  (maint) Update GRM configuration
@choco-bot
Copy link

🎉 This issue has been resolved in version 0.26.0 🎉

The release is available on:

Your GitReleaseManager bot 📦 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues where something has happened which was not expected or intended
Projects
None yet
3 participants