Skip to content

ci: run sonarcloud security on main#144

Merged
jerusdp merged 1 commit into
mainfrom
fix/sonarcloud-scan-main
Jun 23, 2026
Merged

ci: run sonarcloud security on main#144
jerusdp merged 1 commit into
mainfrom
fix/sonarcloud-scan-main

Conversation

@gortavoher

Copy link
Copy Markdown
Collaborator

Problem

The security with sonarcloud job ignored main (and security audit only ran on main), so SonarCloud never scanned main. GitHub then flags main's code-scanning results as "may be out of date" — even though the same code passed scanning as a PR (PR-ref scans don't satisfy the main branch).

Fix

Move main out of both filters, matching the known-good shape (kdeets):

  • security audit onlyonly: /pull\/[0-9]+/ (forked PRs only — SonarCloud secrets/context aren't available there)
  • security with sonarcloudignore: /pull\/[0-9]+/ (everything else, including main + non-forked PRs)

So main is scanned + uploaded on every push, keeping code-scanning/SonarCloud results current.

CI-config-only change.

The 'security with sonarcloud' job ignored main (and audit-only ran on main), so SonarCloud never scanned main — GitHub flags main's code-scanning results as out of date even though the code passed scanning as a PR. Move main out of both security filters: audit-only is now forked-PRs-only (/pull/N); with-sonarcloud now covers main, so main is scanned and results stay current.

Signed-off-by: Jeremiah Russell <jerry@jrussell.ie>
@gortavoher gortavoher requested a review from jerusdp as a code owner June 23, 2026 06:49
@jerus-bot

Copy link
Copy Markdown
Collaborator

✅ Commit Signature Verification - Success

All commits have been verified successfully.

Summary

  • Commits checked: 1
  • Trusted verified: 1
  • External contributors: 0

No impersonation attempts detected.

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jerusdp jerusdp enabled auto-merge June 23, 2026 07:15
@jerusdp jerusdp merged commit ac46011 into main Jun 23, 2026
6 checks passed
@jerusdp jerusdp deleted the fix/sonarcloud-scan-main branch June 23, 2026 07:15
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.

3 participants