vmvarela/SonarQube to GitHub Security Tab (SARIF)

Export SonarQube issues to GitHub Security Tab via SARIF. Adds PR annotations and code scanning.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
sonar-host-urlSonarQube server URL (e.g., https://sonarqube.example.com)yes
sonar-tokenSonarQube authentication token with Browse permissionyes
project-keySonarQube project key (defaults to repository name when omitted)no
output-fileOutput SARIF file pathnosonarqube.sarif
branchBranch to analyze (optional, defaults to main branch)no
wait-for-processingWait for SonarQube analysis to complete before fetching issuesnotrue
max-wait-timeMaximum time to wait for analysis completion (seconds)no300
polling-intervalInterval between status checks when waiting (seconds)no10
processing-delayFixed delay in seconds before fetching issues (0-600). Alternative to wait-for-processing when lacking Execute Analysis permissionno0
min-severityMinimum severity to include (INFO, MINOR, MAJOR, CRITICAL, BLOCKER)noINFO
include-resolvedInclude resolved issues in outputnofalse
pr-commentPost a summary comment on pull requests when issues are foundnotrue
fail-on-severityFail the check if issues at or above this severity exist (INFO, MINOR, MAJOR, CRITICAL, BLOCKER). Omit to never fail.no
github-tokenGitHub token for PR comments and check runs (defaults to github.token)no${{ github.token }}
skip-preflightSkip pre-flight validation checks (connectivity, token, project key). Use for offline/air-gapped setups.nofalse
namedescription
sarif-filePath to the generated SARIF file
issues-countTotal number of issues converted
rules-countNumber of unique rules
components-countNumber of affected components/files
blocker-countNumber of BLOCKER severity issues
critical-countNumber of CRITICAL severity issues
major-countNumber of MAJOR severity issues
minor-countNumber of MINOR severity issues
info-countNumber of INFO severity issues
bugs-countNumber of BUG type issues
vulnerabilities-countNumber of VULNERABILITY type issues
code-smells-countNumber of CODE_SMELL type issues
hotspots-countNumber of SECURITY_HOTSPOT type issues
api-request-countTotal HTTP requests made to SonarQube API
api-error-countTotal failed requests (before retry)
api-retry-countTotal retry attempts across all requests
pages-fetchedTotal pagination pages retrieved from SonarQube
rule-fetch-success-ratePercentage of rule details successfully fetched (0-100)
sarif-file-size-bytesSize of the generated SARIF file in bytes
processing-time-msTotal action duration in milliseconds