Skip to content
项目

关于

Pull request reviews, scans and browser checks for GitHub, run in your own Actions with your own model key.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
正在收集历史
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Code Hawk

Pull request reviews, security scans, verified fixes and browser checks for GitHub, run in your own Actions with your own model key.

Licence GPL-3.0-or-later OpenAI, Anthropic, Google and compatible endpoints Release Docs

Install the GitHub App

What it does

Code Hawk runs as reusable workflows in your repository's GitHub Actions. Each job does one thing, and the GitHub App posts the result with scoped permissions.

Job What you get
PR scan Static and dependency findings from Semgrep CE, Gitleaks, zizmor and OSV-Scanner. No model calls.
PR review Findings on the added lines, a summary that stays current, and answers when you reply to a finding.
Verified fixes Draft pull requests for labelled issues or a maintainer's @codehawk-app fix, with a test that failed before the fix and passes after it.
Browser flows Recorded flows against your app in a container, with a result, video and diagnosis for each flow.
Weekly review Rotating audits of one area at a time. A second, different model confirms each finding before it is filed.
flowchart TB
  pr["Pull request or schedule"] --> wf["Code Hawk jobs in your Actions"]
  wf -->|"your model key"| llm["OpenAI, Anthropic, Google or compatible"]
  wf -->|"short-lived app token"| out["Comments, findings, draft fixes"]

Code Hawk never uses pull_request_target, never approves and never merges. Model review reads the trusted base settings and does not run pull request code. Static scanners get no posting credentials, model-written fixes are tested apart from publication, and repository code runs in secret-free containers. Forks and missing secrets take the skip or log-only path. See the trust model.

Screenshots

Pull request review summary

One summary per pull request, kept current on every push, with each finding, its severity and the spend.

Pull request review summary
Security finding on a changed line

Findings sit on the added line that causes them, with a reply hint to dismiss them for good.

Security finding on a changed line
Fix request from a review thread

A maintainer replies with a fix request and Code Hawk opens a draft pull request.

Fix request from a review thread
Verified fix pull request

The draft names the finding, the test that failed before the fix and passed after it, and the spend.

Verified fix pull request
Browser flows on a pull request

Recorded flows against a seeded copy of the app, with the facts it saw and a diagnosis tied to the code.

Browser flows on a pull request
Weekly area review

Each weekly finding is checked by a second, different model before anything is filed.

Weekly area review

Quick start

  1. Install the GitHub App and pick a repository. GitHub brings you back to the setup page.
  2. Choose a provider and model there, or edit .github/codehawk.json in the Set up Code Hawk pull request. Each job can use its own model profile, with fallbacks and a spend cap. That pull request also adds the pinned caller workflow.
  3. Add one model key as an Actions secret. The static scan runs without one.
  4. Merge the setup pull request, then open a pull request from a branch in the same repository.

The reusable workflows use the hosted token Worker by default. Set token_worker_url for your own Worker, or pass app_id and the CODEHAWK_PRIVATE_KEY secret to use your own GitHub App. Model jobs have optional spend caps, see models and costs.

Docs

Full documentation is at https://codehawk.app/docs/, written from docs/.

Repository layout

Folder What it is
.github/workflows/ the reusable workflows your caller workflow pins
actions/ the composite actions those workflows run
packages/action/ the job code, bundled into packages/action/dist/
packages/worker/ the token Worker and the setup page API on Cloudflare Workers
packages/shared/ settings schema and helpers shared by the action and the Worker
docs/ the guides, published at codehawk.app/docs
site/ the codehawk.app landing page, setup page and docs site
assets/ the brand: logo, icons and banners

Contributing, security and licence

探索相关项目

加载中…