Skip to content

Add check-sca workflow for validation#86

Closed
mostafa-mohammed-sonarsource wants to merge 2 commits into
masterfrom
ms/add-check-sca-workflow
Closed

Add check-sca workflow for validation#86
mostafa-mohammed-sonarsource wants to merge 2 commits into
masterfrom
ms/add-check-sca-workflow

Conversation

@mostafa-mohammed-sonarsource
Copy link
Copy Markdown
Contributor

Summary

  • add a dedicated Required SCA Check workflow on pull_request and merge_group
  • use SonarSource/ci-github-actions/check-sca@v1
  • intentionally do not set project-key to validate current key auto-discovery behavior in this repo

Why

The repo already runs Sonar analysis from the build workflow, but DX/SCA status remains red. This draft PR is meant to validate whether check-sca is failing because discovered project keys do not match the effective analysis key.

Follow-up

If the run confirms key mismatch, we can pin project-key: org.sonarsource.sslr:sslr in this workflow in a follow-up commit.

Add the required check-sca workflow using SonarSource/ci-github-actions/check-sca@v1 on pull_request and merge_group.

For this first iteration, do not pass an explicit project key so the workflow uses automatic key discovery. This is intentional to validate the hypothesis that check-sca may be resolving the wrong key in sslr.

This branch is meant for observation and validation before deciding whether to pin project-key to org.sonarsource.sslr:sslr in a follow-up change.
Set explicit project-key for check-sca to match the actual Sonar project key used by analysis.

This avoids fallback discovery to SonarSource_sslr and makes check-sca query org.sonarsource.sslr:sslr directly.
@sonarqube-next
Copy link
Copy Markdown

@mostafa-mohammed-sonarsource
Copy link
Copy Markdown
Contributor Author

Test is done, and fix hopefully 🤞 is in #87

@mostafa-mohammed-sonarsource mostafa-mohammed-sonarsource deleted the ms/add-check-sca-workflow branch May 20, 2026 06:36
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.

1 participant