Skip to content

feat: add CodeQL security scanning workflow#9

Closed
dims wants to merge 4 commits into
NVIDIA:mainfrom
dims:feat/add-codeql-workflow
Closed

feat: add CodeQL security scanning workflow#9
dims wants to merge 4 commits into
NVIDIA:mainfrom
dims:feat/add-codeql-workflow

Conversation

@dims
Copy link
Copy Markdown
Collaborator

@dims dims commented Feb 1, 2026

Summary

Add GitHub CodeQL analysis for automated security vulnerability detection. CodeQL is GitHub's semantic code analysis engine that catches issues like:

  • SQL injection
  • Command injection
  • Path traversal
  • Hardcoded credentials
  • Insecure cryptographic practices

Schedule

  • On push to main
  • On PRs to main
  • Weekly (Monday 5am UTC) — catches newly discovered vulnerability patterns

Alignment

This aligns with the pattern used by other NVIDIA Go repositories:

  • nvidia-container-toolkit
  • k8s-device-plugin
  • gpu-operator

Test plan

  • YAML passes yamllint
  • Workflow runs successfully on PR (will verify when this PR is opened)

Risk Assessment

Low - Adds read-only security scanning; does not modify build or release processes.

🤖 Generated with Claude Code

Add GitHub CodeQL analysis for automated security vulnerability detection.
CodeQL is GitHub's semantic code analysis engine that catches issues like:
- SQL injection
- Command injection
- Path traversal
- Hardcoded credentials
- Insecure cryptographic practices

Schedule:
- On push to main
- On PRs to main
- Weekly (Monday 5am UTC) to catch newly discovered vulnerability patterns

This aligns with the pattern used by nvidia-container-toolkit, k8s-device-plugin,
and gpu-operator.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Copilot AI review requested due to automatic review settings February 1, 2026 00:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Actions workflow to run CodeQL security analysis on the Go codebase on pushes/PRs to main and on a weekly schedule.

Changes:

  • Introduces a new codeql.yaml workflow triggering on push, pull_request, and weekly cron.
  • Configures CodeQL for Go with a manual build step (make build).
  • Adds workflow-level concurrency and SARIF upload permissions for Security tab reporting.

Comment thread .github/workflows/codeql.yaml Outdated
Comment thread .github/workflows/codeql.yaml
Comment thread .github/workflows/codeql.yaml Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 1, 2026

Coverage Report ✅

Metric Value
Coverage 73.7%
Threshold 70%
Status Pass
Coverage Badge
![Coverage](https://img.shields.io/badge/coverage-73.7%25-green)

dims and others added 2 commits January 31, 2026 19:44
The workflow failed to checkout the repository because it lacked
the contents:read permission needed to access the private repo.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
- Add actions:read permission for workflow metadata access
- Pin all actions to SHA with version comments for supply chain security
- Update to codeql-action v4.32.0 (matches vuln-scan.yaml)
- Fix indentation to match project style (6-space for steps)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Copilot AI review requested due to automatic review settings February 1, 2026 00:46
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

make build requires goreleaser which isn't installed in the workflow.
Use go build ./... which is sufficient for CodeQL code analysis.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
@dims
Copy link
Copy Markdown
Collaborator Author

dims commented Feb 1, 2026

❯ gh extension install advanced-security/gh-code-scanning
⢿Cloning into '/Users/dsrinivas/.local/share/gh/extensions/gh-code-scanning'...
⢿remote: Enumerating objects: 685, done.
remote: Counting objects: 100% (203/203), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 685 (delta 165), reused 148 (delta 139), pack-reused 482 (from 1)
Receiving objects: 100% (685/685), 149.52 KiB | 632.00 KiB/s, done.
Resolving deltas: 100% (388/388), done.
✓ Installed extension advanced-security/gh-code-scanning

❯ gh code-scanning enable NVIDIA/eidos
2026-01-31 20:04:40,887 66489 WARNING NVIDIA/eidos: cannot enable GitHub Advanced Security: gh: An enforced security configuration prevented modifying advanced security enablement. Contact your organization owner for details. (HTTP 422)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

This pull request has been automatically locked since it has been closed for 90 days with no further activity. Please open a new pull request for related changes.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants