Installation Methods
GitHub App
The BLAZLE GitHub App scans every Pull Request for secrets, leaked credentials, and destructive commands — acting as the final security gate before code reaches your main branch.
Installation
Navigate to the Integrations tab in your BLAZLE dashboard and click Connect GitHub. Authorize the BLAZLE GitHub App on your organization or selected repositories.
How it works
When a Pull Request is opened or updated, GitHub sends a webhook to BLAZLE. BLAZLE fetches the PR diff and scans it instantly using the BLAZIL Engine — Aho-Corasick multi-pattern matching in under 1 millisecond.
Scan results are logged to your Dashboard under Code Scans with full finding details, regardless of which blocking mode is active.
Blocking Modes
BLAZLE offers two levels of enforcement, both toggled from the Code Scans page in your Dashboard.
When a violation is detected, BLAZLE posts a REQUEST_CHANGES review comment on the Pull Request warning the author to remove the secret and amend their commit. The Merge button remains available — this mode is advisory only.
When enabled, BLAZLE also posts a GitHub Commit Status (context: "BLAZLE Security Scan") to the head commit of every PR — failure if threats are detected, success if the PR is clean.
Enabling Hard Block — GitHub Setup
To make the Hard Block physically prevent merging, configure your GitHub repository:
- Go to your GitHub repository → Settings → Branches.
- Click Add branch protection rule and set the branch name to
main(or your default branch). - Enable "Require status checks to pass before merging".
- In the search box, type and select
BLAZLE Security Scan. - Save the rule.
Once configured, GitHub will grey out the Merge button on any PR where BLAZLE has posted a failure status, until the developer removes the violation and re-pushes.
Why can't BLAZLE block direct pushes to main?
GitHub webhooks are passive observers — they fire after a push has already landed. BLAZLE has no mechanism to reject a push mid-flight. The correct way to prevent direct pushes to protected branches is to enable the "Restrict who can push to matching branches" option inside your Branch Protection Rule on GitHub. This is a GitHub-side setting and does not require any additional BLAZLE configuration.