{"id":49068293,"url":"https://github.com/thejefflarson/soundcheck-action","last_synced_at":"2026-06-13T23:02:09.225Z","repository":{"id":345410981,"uuid":"1185786198","full_name":"thejefflarson/soundcheck-action","owner":"thejefflarson","description":"GitHub Action: automated OWASP security review that rewrites findings and opens a PR","archived":false,"fork":false,"pushed_at":"2026-06-01T06:30:54.000Z","size":80,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-01T08:10:40.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thejefflarson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-19T00:08:07.000Z","updated_at":"2026-06-01T06:08:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thejefflarson/soundcheck-action","commit_stats":null,"previous_names":["thejefflarson/soundcheck-action"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/thejefflarson/soundcheck-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejefflarson%2Fsoundcheck-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejefflarson%2Fsoundcheck-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejefflarson%2Fsoundcheck-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejefflarson%2Fsoundcheck-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thejefflarson","download_url":"https://codeload.github.com/thejefflarson/soundcheck-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejefflarson%2Fsoundcheck-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34140775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-20T06:10:47.236Z","updated_at":"2026-06-10T07:01:23.384Z","avatar_url":"https://github.com/thejefflarson.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soundcheck Security Review (v2)\n\nRuns a [Soundcheck](https://github.com/thejefflarson/soundcheck) security\nreview against your repository on every pull request. Comments a\nseverity-ranked findings table on the PR and, when autofix is enabled,\ncommits rewrites back to the PR branch.\n\nBacked by Soundcheck's 45 skills covering OWASP Web Top 10:2025, OWASP\nLLM Top 10:2025, and API Security Top 10:2023.\n\n## Usage\n\n```yaml\nname: Security Review\non:\n  pull_request:\n    branches: [\"**\"]\n\njobs:\n  review:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write        # only needed if autofix is enabled\n      pull-requests: write\n    steps:\n      - uses: actions/checkout@v5\n        with:\n          fetch-depth: 0     # full history so --diff-base can resolve\n\n      - uses: thejefflarson/soundcheck-action@v2\n        with:\n          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## What it does\n\nOn a `pull_request` event:\n\n1. Clones Soundcheck at a pinned commit SHA (supply-chain-safe) and\n   installs the `claude` CLI on the runner.\n2. Runs the review script scoped to the files changed in the PR\n   (`--diff-base origin/\u003cbase-branch\u003e`), with the pinned skill file as\n   the reviewer's system prompt.\n3. If `autofix: true` (the default), the reviewer gets Edit access and\n   rewrites Critical/High/Medium findings in place; the runner then\n   commits the rewrites back to the PR branch.\n4. Comments the findings table on the PR and writes the same summary\n   to the job step summary.\n\nOn `workflow_dispatch` or `schedule` (no PR context):\n\n1. Same setup, but runs a full-repo scan (no `--diff-base`).\n2. If autofix rewrites any files, pushes them to a\n   `soundcheck/security-review` branch and opens (or updates) a PR\n   against the base branch.\n3. Writes the summary to the job step summary.\n\nThe CLI exits non-zero (1) on any Critical/High finding, which the\naction surfaces via `outputs.exit-code`. Wire that into a required\ncheck if you want the review to gate merges.\n\n## Inputs\n\n| Input | Required | Default | Description |\n|---|---|---|---|\n| `anthropic-api-key` | Yes | — | Anthropic API key (repo secret) |\n| `github-token` | Yes | — | Token with `pull-requests:write` (+ `contents:write` if autofix) |\n| `base-branch` | No | repo default | Branch to diff against on PRs and open PRs into on scheduled runs |\n| `model` | No | `sonnet` | Whatever `claude -p --model` accepts — a short alias (`sonnet`, `haiku`) or a full model id |\n| `autofix` | No | `true` | Grant the reviewer Edit access and commit rewrites back |\n| `max-budget-usd` | No | `5` | Aggregate spend cap across review + autofix |\n| `timeout-seconds` | No | `900` | Subprocess timeout passed to the reviewer CLI |\n\n## Outputs\n\n| Output | Description |\n|---|---|\n| `pr-url` | PR URL if one was opened/updated. Empty on diff-only runs. |\n| `findings-count` | Total findings returned by the reviewer |\n| `exit-code` | Reviewer exit code — `0` clean, `1` Critical/High findings, `2` infrastructure error |\n\n## Non-Anthropic providers (Bedrock, Vertex)\n\nThe reviewer shells out to `claude -p --model \u003cX\u003e`, so whatever model\nstring the `claude` CLI accepts, this action accepts. For Bedrock or\nVertex, set the provider-selection env vars on the job and pass the\nARN/model id via `model`:\n\n```yaml\njobs:\n  review:\n    runs-on: ubuntu-latest\n    env:\n      CLAUDE_CODE_USE_BEDROCK: \"1\"\n      AWS_REGION: us-east-1\n      # plus AWS credentials — SSO, IAM role, or access keys\n    permissions:\n      contents: write\n      pull-requests: write\n    steps:\n      - uses: actions/checkout@v5\n        with:\n          fetch-depth: 0\n      - uses: thejefflarson/soundcheck-action@v2\n        with:\n          anthropic-api-key: \"\"    # unused on Bedrock, still required by the input schema\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          model: arn:aws:bedrock:us-east-1:...:application-inference-profile/...\n```\n\nThe reviewer runs a preflight ping before the real review, so a\nmisconfigured provider fails in seconds with a pointer to the env vars\nrather than after the full timeout with no output.\n\n## Secrets\n\nAdd your Anthropic API key as a repository secret:\n**Settings → Secrets and variables → Actions → New repository secret**\nnamed `ANTHROPIC_API_KEY`.\n\n## Migrating from v1\n\n- **`max-files` is gone.** PR runs now use `--diff-base` to scope the\n  review to changed files; scheduled runs scan the whole repo.\n  `max-files` had no direct replacement and is no longer honored.\n- **Autofix is now an explicit `autofix: true` input.** Same default\n  behavior as v1 (commits rewrites back), just now a visible toggle\n  you can flip off for comment-only PR gating.\n- **Default model alias.** `model` defaults to `sonnet` instead of\n  `claude-sonnet-4-6`. Both still work; the alias tracks the newest\n  release without an action bump.\n- **Python SDK dependency removed.** v1 `pip install anthropic`'d its\n  own script; v2 runs Soundcheck's pinned CLI via `claude -p`.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejefflarson%2Fsoundcheck-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthejefflarson%2Fsoundcheck-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejefflarson%2Fsoundcheck-action/lists"}