{"id":50996434,"url":"https://github.com/kanywst/brtc-action","last_synced_at":"2026-06-20T10:01:32.173Z","repository":{"id":362868375,"uuid":"1229552896","full_name":"kanywst/brtc-action","owner":"kanywst","description":"GitHub Action for brtc — gate CI on offline password brute-force cost (time + USD, optional SARIF).","archived":false,"fork":false,"pushed_at":"2026-06-06T08:54:48.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T10:20:32.434Z","etag":null,"topics":["actions","argon2","bcrypt","brtc","code-scanning","composite-action","devsecops","gatekeeper","github-action","password-strength","sarif","security"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanywst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-05T06:50:51.000Z","updated_at":"2026-06-06T08:54:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kanywst/brtc-action","commit_stats":null,"previous_names":["kanywst/brtc-action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kanywst/brtc-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fbrtc-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fbrtc-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fbrtc-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fbrtc-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanywst","download_url":"https://codeload.github.com/kanywst/brtc-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fbrtc-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34565244,"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-20T02:00:06.407Z","response_time":98,"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":["actions","argon2","bcrypt","brtc","code-scanning","composite-action","devsecops","gatekeeper","github-action","password-strength","sarif","security"],"created_at":"2026-06-20T10:01:28.697Z","updated_at":"2026-06-20T10:01:32.167Z","avatar_url":"https://github.com/kanywst.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# brtc-action\n\nGitHub Action wrapper for [brtc](https://github.com/kanywst/brtc) — calculate the offline brute-force cost of a password or secret, and optionally fail the build when the estimated crack time falls below a threshold.\n\n\u003e **brtc is a cost calculator, not a strength meter.** For accurate strength evaluation, run [zxcvbn](https://github.com/dropbox/zxcvbn) first and feed its `guesses` value via the `guesses:` input.\n\n## Quick start\n\nGate a deployment on a secret being expensive enough to crack:\n\n```yaml\n- name: Gate on password strength\n  uses: kanywst/brtc-action@v1\n  with:\n    password: ${{ secrets.SERVICE_PASSWORD }}\n    algorithm: bcrypt\n    cost: \"12\"\n    hardware: aws-p5.48xlarge\n    fail-under-time: 1y\n```\n\nIf `aws-p5.48xlarge` could crack the secret in less than a year, the step exits non-zero and the workflow fails.\n\n## Pair with zxcvbn (recommended)\n\nUse a real strength estimator for entropy, brtc for the cost translation:\n\n```yaml\n- name: Estimate guesses with zxcvbn\n  id: zxcvbn\n  run: |\n    npx --yes zxcvbn-cli \"${{ secrets.SERVICE_PASSWORD }}\" --json \\\n      | jq -r '.guesses' \\\n      | xargs -I{} echo \"guesses={}\" \u003e\u003e \"$GITHUB_OUTPUT\"\n\n- name: Convert to USD cost\n  uses: kanywst/brtc-action@v1\n  with:\n    guesses: ${{ steps.zxcvbn.outputs.guesses }}\n    algorithm: bcrypt\n    cost: \"12\"\n    fail-under-time: 1y\n```\n\n## Inputs\n\n| Name              | Default     | Description                                                                              |\n| ----------------- | ----------- | ---------------------------------------------------------------------------------------- |\n| `password`        | _none_      | Secret to evaluate. Either `password` or `guesses` must be set.                          |\n| `guesses`         | _none_      | External guess count (e.g. `zxcvbn` output, `1e10`). Skips brtc's built-in entropy.      |\n| `algorithm`       | `bcrypt`    | `md5`, `sha256`, `bcrypt`, or `argon2id`.                                                |\n| `cost`            | `10`        | Work factor (bcrypt) or time iterations (argon2id).                                      |\n| `memory`          | _none_      | Argon2id memory (e.g. `64m`, `128m`, `1g`).                                              |\n| `hardware`        | `rtx-4090`  | Attacker hardware profile.                                                               |\n| `fail-under-time` | _none_      | Fail the step if estimated crack time is shorter (e.g. `1y`, `30d`, `12h`).              |\n| `budget`          | _none_      | Attacker budget in USD (e.g. `1000usd`).                                                 |\n| `output`          | `json`      | `json` or `sarif`. JSON is required for the action outputs to be populated.              |\n| `brtc-version`    | `latest`    | brtc release tag to install (e.g. `v0.2.0`, `latest`, `main`).                           |\n| `go-version`      | `1.25`      | Go toolchain version used to install brtc.                                               |\n\n## Outputs\n\n| Name                    | Description                                            |\n| ----------------------- | ------------------------------------------------------ |\n| `cost-usd`              | Estimated USD cost to crack.                           |\n| `time-to-crack-seconds` | Estimated seconds to crack.                            |\n| `entropy-bits`          | Estimated entropy in bits.                             |\n| `raw-json`              | Full brtc JSON output. Only set when `output: json`.   |\n\n## SARIF output for Code Scanning\n\n```yaml\n- name: brtc → SARIF\n  uses: kanywst/brtc-action@v1\n  with:\n    password: ${{ secrets.SERVICE_PASSWORD }}\n    output: sarif\n  id: brtc\n- name: Upload SARIF\n  uses: github/codeql-action/upload-sarif@v3\n  with:\n    sarif_file: ${{ steps.brtc.outputs.raw-json }}\n```\n\n## Versioning\n\n- `@v1` — current major version, tracks the latest minor/patch on the v1 line.\n- `@vX.Y.Z` — pin to a specific release.\n- `@main` — bleeding edge, may break.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanywst%2Fbrtc-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanywst%2Fbrtc-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanywst%2Fbrtc-action/lists"}