Skip to content

CI automation: free static analysis (Semgrep + CodeQL) + Dependabot#13

Merged
manan-tech merged 3 commits into
mainfrom
ci-automation
Jun 8, 2026
Merged

CI automation: free static analysis (Semgrep + CodeQL) + Dependabot#13
manan-tech merged 3 commits into
mainfrom
ci-automation

Conversation

@manan-tech

@manan-tech manan-tech commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Adds automated, completely free code-review/bug-finding and dependency hygiene for the repo — no API credits, no paid services, no tokens. Everything here is free for public repositories.

What's added

  • semgrep.yml — open-source static analysis (Semgrep p/python + p/security-audit). Runs on every PR; findings upload to GitHub code scanning and appear as inline annotations on the PR's Files changed tab and in the Security tab. Non-blocking (surfaces findings like a reviewer rather than gating). No account/token required.
  • codeql.yml — GitHub's own Python security/quality scanner on push/PR + weekly cron. Free for public repos.
  • dependabot.yml — weekly grouped update PRs for pip deps and GitHub Actions.

Cost

$0. GitHub Actions minutes, CodeQL, and code scanning are all free for public repositories, and Semgrep's OSS engine + community rules need no paid plan. Dependabot is a native GitHub feature.

Note: the earlier draft of this PR included Claude-powered PR review (anthropics/claude-code-action). That was dropped because it requires a paid ANTHROPIC_API_KEY — replaced with the free static-analysis stack above. An LLM-style reviewer can be added later (e.g. a free-for-open-source app, or your own key) without changing anything here.

Notes

  • YAML validated locally.
  • CodeQL and Semgrep are complementary (deep dataflow vs. fast pattern rules); drop one later if the signal overlaps too much for a solo maintainer.

- claude-pr-review.yml: runs on every non-draft PR; review prompt tuned to
  this library's risks (look-ahead bias, honest OOS stats, metric/optimizer
  math correctness). Requires ANTHROPIC_API_KEY secret.
- claude.yml: responds to @claude mentions in issues/PRs.
- dependabot.yml: weekly pip + github-actions update PRs (grouped).
- codeql.yml: Python security/quality scanning on push/PR + weekly cron.
@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.

…Claude bots)

Replaces the Claude PR-review / @claude workflows (which need a paid
ANTHROPIC_API_KEY) with fully free automation:
- semgrep.yml: open-source static analysis (Python + security rules);
  findings upload to GitHub code scanning and annotate the PR. No token,
  no account, free for public repos.
- codeql.yml + dependabot.yml retained (free for public repos).

No API credits required anywhere in CI.
@manan-tech manan-tech changed the title CI automation: Claude PR review, @claude bot, Dependabot, CodeQL CI automation: free static analysis (Semgrep + CodeQL) + Dependabot Jun 8, 2026
@manan-tech manan-tech merged commit 04433ee into main Jun 8, 2026
9 checks passed
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