Skip to content

Add CodeQL security scanning workflow#97

Merged
alexkroman merged 2 commits into
mainfrom
claude/loving-gates-kz0742
Jun 12, 2026
Merged

Add CodeQL security scanning workflow#97
alexkroman merged 2 commits into
mainfrom
claude/loving-gates-kz0742

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Summary

Adds a GitHub Actions workflow to run CodeQL static analysis on the repository, enabling automated security vulnerability detection and code quality scanning.

Changes

  • New workflow file (.github/workflows/codeql.yml):
    • Configured to run on pull requests to main, pushes to main, and weekly schedule (Tuesdays at 14:29 UTC)
    • Analyzes three language targets: Python (CLI), Actions (workflows), and JavaScript/TypeScript (init template)
    • Uses build-mode none since all three are interpreted languages
    • Implements least-privilege permissions with security-events write access scoped to the analyze job
    • Pins GitHub Actions to specific commit SHAs for supply-chain security
    • Configures concurrency to cancel superseded PR runs but preserve main branch scans
    • Uploads SARIF results to GitHub's code scanning dashboard

Implementation Details

  • The workflow respects the project's security practices by using pinned action versions and minimal permissions
  • Weekly scheduled runs ensure new CodeQL queries from GitHub are applied to the default branch between code changes
  • Concurrency settings prevent double-scanning PR commits (mirrors the pattern in ci.yml)
  • No build step required since Python, Actions, and JavaScript are all interpreted languages

https://claude.ai/code/session_01MVoa4Ctp4Mok7oAR21qArU

Scans python (the CLI), actions (the workflows), and
javascript-typescript (the committed init template JS) on PRs, pushes
to main, and a weekly schedule. Follows the repo's workflow
conventions: SHA-pinned actions, least-privilege permissions,
persist-credentials off, and superseded-run cancellation that never
cancels a main run.

https://claude.ai/code/session_01MVoa4Ctp4Mok7oAR21qArU
@alexkroman alexkroman enabled auto-merge (squash) June 12, 2026 03:40
@alexkroman alexkroman merged commit 886d84b into main Jun 12, 2026
12 of 15 checks passed
@alexkroman alexkroman deleted the claude/loving-gates-kz0742 branch June 12, 2026 03:44
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.

2 participants