Skip to content

Add CodeQL workflow for SAST scanning#332

Merged
averevki merged 1 commit into
mainfrom
codeql-workflow
Jul 16, 2026
Merged

Add CodeQL workflow for SAST scanning#332
averevki merged 1 commit into
mainfrom
codeql-workflow

Conversation

@averevki

@averevki averevki commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Enable CodeQL static analysis to scan Go code for security vulnerabilities and coding errors
  • Runs on pushes and PRs to main, plus a weekly scheduled scan
  • Addresses the SAST scanning on openssf scorecard (currently 0/10)

Part of the work on Kuadrant/kuadrant-operator#2038

@averevki averevki self-assigned this Jun 30, 2026
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@averevki, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d787300b-e262-496b-bee9-d2c3f81bb584

📥 Commits

Reviewing files that changed from the base of the PR and between 90529ab and b2e333d.

📒 Files selected for processing (1)
  • .github/workflows/codeql.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codeql-workflow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@codecov-commenter

codecov-commenter commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.26%. Comparing base (90529ab) to head (b2e333d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #332   +/-   ##
=======================================
  Coverage   57.26%   57.26%           
=======================================
  Files          13       13           
  Lines        1479     1479           
=======================================
  Hits          847      847           
  Misses        535      535           
  Partials       97       97           
Flag Coverage Δ
unit 57.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

## Summary
  - Enable CodeQL static analysis to scan Go code for security vulnerabilities and coding errors
  - Runs on pushes and PRs to `main`, plus a weekly scheduled scan
  - Addresses the https://github.com/ossf/scorecard/blob/c395761df6afe1a69e476bc60a013a94bcbc153f/docs/checks.md#sast (currently 0/10)

Part of the work on Kuadrant/kuadrant-operator#2055

Signed-off-by: averevki <sandyverevkin@gmail.com>
@averevki
averevki added this pull request to the merge queue Jul 16, 2026
Merged via the queue into main with commit e93eec8 Jul 16, 2026
20 checks passed
@averevki
averevki deleted the codeql-workflow branch July 16, 2026 09:58
@github-project-automation github-project-automation Bot moved this to Done in Kuadrant Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants