Skip to content

ci: add CodeQL security analysis workflow#41

Merged
atkaridarshan04 merged 2 commits into
mainfrom
ci/github-actions
May 18, 2026
Merged

ci: add CodeQL security analysis workflow#41
atkaridarshan04 merged 2 commits into
mainfrom
ci/github-actions

Conversation

@atkaridarshan04
Copy link
Copy Markdown
Collaborator

Summary

Adds CodeQL static analysis to the CI pipeline. Runs on every PR to main, every push to main that touches app/, and weekly on a cron schedule.

Changes

  • Add .github/workflows/codeql.yml — CodeQL analysis using security-extended query suite, Python language, weekly cron + PR/push triggers
  • Add suppression comment in app/cli/core/inspector.py at the subprocess.run call — documents why the call is not injectable (shell=False,
    path embedded as string literal in script source, not passed as shell argument)

Type

  • Chore / dependency update

Testing

  • pytest passes
  • Coverage ≥ 70%
  • Tested manually — workflow will run as part of this PR; CodeQL check should appear in the checks list

Related Issues

Closes #8

@atkaridarshan04 atkaridarshan04 added this to the v1 milestone May 18, 2026
@atkaridarshan04 atkaridarshan04 self-assigned this May 18, 2026
@atkaridarshan04 atkaridarshan04 added the enhancement New feature or request label May 18, 2026
@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.

@atkaridarshan04 atkaridarshan04 merged commit f243031 into main May 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CodeQL static analysis to CI for automated security scanning

2 participants