{"id":20860492,"url":"https://github.com/wakeward/gh-branch-auditor","last_synced_at":"2026-04-24T00:38:05.055Z","repository":{"id":241438016,"uuid":"801713247","full_name":"wakeward/gh-branch-auditor","owner":"wakeward","description":"GitHub Branch Protection Auditor","archived":false,"fork":false,"pushed_at":"2026-03-27T10:45:56.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T22:39:11.575Z","etag":null,"topics":["branch-protection","gh-extension","github","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wakeward.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":".github/CODEOWNERS","security":"SECURITY.md","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":"2024-05-16T19:12:00.000Z","updated_at":"2026-03-27T10:44:56.000Z","dependencies_parsed_at":"2024-05-28T10:56:58.249Z","dependency_job_id":"1961c35e-d8e7-4d2e-8dc3-c96b69e775da","html_url":"https://github.com/wakeward/gh-branch-auditor","commit_stats":null,"previous_names":["wakeward/gh-branch-auditor"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/wakeward/gh-branch-auditor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakeward%2Fgh-branch-auditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakeward%2Fgh-branch-auditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakeward%2Fgh-branch-auditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakeward%2Fgh-branch-auditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wakeward","download_url":"https://codeload.github.com/wakeward/gh-branch-auditor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakeward%2Fgh-branch-auditor/sbom","scorecard":{"id":1244545,"data":{"date":"2026-03-08T14:12:19Z","repo":{"name":"github.com/wakeward/gh-branch-auditor","commit":"969e16ac4735169da9855532028bda6f0e4f59fb"},"scorecard":{"version":"v5.0.0","commit":"ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4"},"score":6.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#binary-artifacts"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Warn: could not determine whether codeowners review is allowed","Warn: no status checks found to merge onto branch 'main'","Warn: PRs are not required to make changes on branch 'main'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#branch-protection"}},{"name":"CI-Tests","score":5,"reason":"8 out of 14 merged PRs checked by a CI test -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#ci-tests"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#cii-best-practices"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#code-review"}},{"name":"Contributors","score":3,"reason":"project has 1 contributing companies or organizations -- score normalized to 3","details":["Info: tricentis contributor org/company found, "],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#contributors"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#dangerous-workflow"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#dependency-update-tool"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#license"}},{"name":"Maintained","score":10,"reason":"15 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#maintained"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:11"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   8 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:  10 out of  10 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#sast"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":2,"reason":"1 out of the last 4 releases have a total of 1 signed artifacts.","details":["Info: signed release artifact: checksums.txt.sig: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/assets/369455600","Warn: release artifact v1.0.2 not signed: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/245946926","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/197245057","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/171350145","Warn: release artifact v1.0.4 does not have provenance: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/294404417","Warn: release artifact v1.0.2 does not have provenance: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/245946926","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/197245057","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/wakeward/gh-branch-auditor/releases/171350145"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#signed-releases"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/release.yml:64","Info: jobLevel 'contents' permission set to 'read': .github/workflows/scorecard.yml:18","Info: jobLevel 'actions' permission set to 'read': .github/workflows/scorecard.yml:19","Info: topLevel 'contents' permission set to 'read': .github/workflows/lint_tests.yml:17","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:8","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/unit_tests.yml:17","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#token-permissions"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2026-03-08T16:28:48.377Z","repository_id":241438016,"created_at":"2026-03-08T16:28:48.387Z","updated_at":"2026-03-08T16:28:48.387Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32204710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T00:06:41.111Z","status":"ssl_error","status_checked_at":"2026-04-24T00:06:35.224Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["branch-protection","gh-extension","github","golang"],"created_at":"2024-11-18T04:55:50.174Z","updated_at":"2026-04-24T00:38:05.043Z","avatar_url":"https://github.com/wakeward.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Branch Protection Auditor (gh-branch-auditor)\n\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/wakeward/gh-branch-auditor/badge)](https://securityscorecards.dev/viewer/?uri=github.com/wakeward/gh-branch-auditor)\n[![Go Report Card](https://goreportcard.com/badge/github.com/wakeward/gh-branch-auditor)](https://goreportcard.com/report/github.com/wakeward/gh-branch-auditor)\n[![Release](https://img.shields.io/github/v/release/wakeward/gh-branch-auditor)](https://github.com/wakeward/gh-branch-auditor/releases)\n[![License](https://img.shields.io/github/license/wakeward/gh-branch-auditor)](LICENSE)\n\nA tool for analysing GitHub Branch Protection settings on repositories\n\n\u003e Currently limited to the default branch where primarily branch protection rules are enforced.\n\n- [Required Permissions](#required-permissions)\n- [Command line Usage](#command-line-usage)\n  - [Usage Example](#usage-example)\n- [Rulesets](#rulesets)\n\n## Required Permissions\n\nTo assess the branch protection settings for a repository, the user person access token **must have** [\"Administration\" repository permissions (read)](https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28#get-branch-protection)\n\n## Command Line Usage\n\n```bash\ngh-branch-auditor is a tool to audit GitHub Branch Protection Rules.\n\nUsage:\n  gh-branch-auditor [flags]\n\nFlags:\n      --debug           turn on debug logs\n  -f, --format string   Set output format (cli, json) (default \"json\")\n  -h, --help            help for gh-branch-auditor\n  -o, --owner string    Set GitHub repository owner\n  -r, --repo string     Set GitHub repository name\n  -t, --token string    Set GitHub token\n```\n\n## Usage Example\n\nAnalyse all repositories for an owner\n\n```bash\n$ gh-branch-auditor -o \u003cOWNER\u003e\n```\n\nAnalyse a specific repository for an owner\n\n```bash\n$ gh-branch-auditor -o \u003cOWNER\u003e -r \u003cREPOSITORY\u003e\n```\n\nBy default, the GitHub Branch Auditor will look for a `gh` CLI token, a token can be specified with `-t` flag.\n\n```bash\n$ gh-branch-auditor -t \u003cGH_TOKEN\u003e -o \u003cOWNER\u003e -r \u003cREPOSITORY\u003e\n```\n\n## Rulesets\n\nThe following rulesets are analysed by the gh-branch-auditor.\n\n| RuleSet ID | Branch Rule | Risk | Severity |\n|-----|-----|-----|-----|\n| GH-BP-001 | Branch protection applied to listed branch | Branch Protections is Disabled. | High |\n| GH-BP-002 | Allow force pushes | Force push overwrites current branch with another. | High |\n| GH-BP-003 | Allow deletions | Protected branch configuration can removed. | High |\n| GH-BP-004 | Require review from Code Owners | Code owner pull request review is not required. | High |\n| GH-BP-005 | Dismiss stale pull request approvals when new commits are pushed | New commits does not require a code review. | Medium |\n| GH-BP-006 | Restrict who can push to matching branches | New branches can be created by any user. | Low |\n| GH-BP-007 | Require conversation resolution before merging | Not all comments need to be resolved before pull request is merged. | Low |\n| GH-BP-008 | Require linear history | Merge commits can be pushed to the branch. | Medium |\n| GH-BP-009 | Require approval of the most recent reviewable push | Last user to push changes can approve the pull request. | Medium |\n| GH-BP-010 | Require status checks to pass before merging | Branches do not need to up to date before merging. | Medium |\n| GH-BP-011 | Lock branch | Push directly to branch is allowed for collaborators and teams. | High |\n| GH-BP-012 | Require signed commits | Not all commits are not signed | Low |\n| GH-BP-013 | Do not allow bypassing the above settings | Administrators can bypass branch protection settings. | High |\n\n\u003e Note: There are no risks that are considered critical as user must be authenticated as collaborator or team to push to the repository.\n\n### Limitations\n\nThe current limitations for the tool are as follows:\n\n* Analysis is limited to GitHub SaaS (github.com)\n* The assessment is only against the default branch (where primarily branch protection rules are enforced)\n* Currently only json output is supported","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwakeward%2Fgh-branch-auditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwakeward%2Fgh-branch-auditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwakeward%2Fgh-branch-auditor/lists"}