Skip to content

SonarScanner cleanup - #9015

Merged
sithlord48 merged 5 commits into
masterfrom
security-tool-cleanup
Oct 13, 2025
Merged

SonarScanner cleanup#9015
sithlord48 merged 5 commits into
masterfrom
security-tool-cleanup

Conversation

@nbolton

@nbolton nbolton commented Oct 9, 2025

Copy link
Copy Markdown
Member

Fixes #8138

Todo:

  • Squash commits
  • Always run code scanning (even if draft)

@nbolton
nbolton marked this pull request as ready for review October 9, 2025 08:56
@nbolton nbolton changed the title Security tool cleanup SonarScanner cleanup Oct 9, 2025
@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@nbolton
nbolton force-pushed the security-tool-cleanup branch 2 times, most recently from 43c4950 to 8354f9d Compare October 9, 2025 09:42
@nbolton
nbolton requested a review from sithlord48 October 9, 2025 11:38

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason to change the quotes.
I do not like this as its own yml now we have 3 action runs per push.. Making it harder to find the action i care about with the build results.

@nbolton

nbolton commented Oct 9, 2025

Copy link
Copy Markdown
Member Author

3 action runs per push

The matrix expands, so there are actually dozens. Adding 1 more makes little difference, plus it's at the bottom.

By running a workflow from a workflow like this, we're fighting convention which will only confuse others in future. It's also a stumling block when you're exploring the code scanning UI in GitHub, as it appears that the workflow is not running (untill you unpick the fact that it's called from another workflow). The GitHub UI just isn't designed for this and it makes little sense fighting it for the sake of 1 less row in a list of like 30(?) results.

@sithlord48

Copy link
Copy Markdown
Member

3 action runs per push

The matrix expands, so there are actually dozens. Adding 1 more makes little difference, plus it's at the bottom.

I'm talking about the Action list when we go look for jobs related to the CI runs

Screenshot_20251009_091914

@nbolton

nbolton commented Oct 13, 2025

Copy link
Copy Markdown
Member Author

I'm talking about the Action list when we go look for jobs related to the CI runs

Screenshot_20251009_091914

Even so, adding 1 more doesn't make much difference and significantly reduces confusion in other areas of the GitHub UI such as the "View runs" button on the workflow (edit: and the badge on our readme). When you run a workflow from a workflow, it doesn't show up as a run on the workflow, so it looks like the workflow is not running (after paging out the fact that it's a workflow running from a workflow).

image

It's unconventional to run code scanning workflows from within a workflow within a workflow, which makes it confusing when trying to find the results in the GitHub UI.

When you fight against the GitHub UI, you make life harder for others.

@sithlord48

Copy link
Copy Markdown
Member

It's more an issue with my workflow and how I like to see the actions... I'm sure ill get over it.

@sithlord48
sithlord48 force-pushed the security-tool-cleanup branch from 8354f9d to 6edf20d Compare October 13, 2025 11:24
sithlord48
sithlord48 previously approved these changes Oct 13, 2025
fix: Prevent SonarCloud analysis from running on draft pull requests
refactor: Rename job from 'sonarcloud-analysis' to 'analyze' in SonarCloud workflow

refactor: Reorder SonarQube scan and build wrapper installation steps in SonarCloud workflow

refactor: Update SonarQube scan step to use new action and streamline options

fix: Update SonarQube scan step to correctly pass coverage report paths and environment variables

fix: Set CPU core count to a fixed value in SonarCloud analysis workflow

refactor: Move 'Install Build Wrapper' step to the correct position in the SonarCloud analysis workflow

refactor: Remove unused Sonar Scanner environment variables from analysis workflow
@sithlord48
sithlord48 force-pushed the security-tool-cleanup branch from 1644939 to ddd6c2f Compare October 13, 2025 11:51
@sithlord48
sithlord48 merged commit 8d577aa into master Oct 13, 2025
29 of 30 checks passed
@sithlord48
sithlord48 deleted the security-tool-cleanup branch October 13, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use the sonarqube-scan-action and install-build-wrapper

3 participants