Skip to main content

Flare for GitHub Actions

A security review.
Right in your pull request.

See what an infrastructure change could expose, why it matters, and what to fix. Bring Flare into the workflow your team already uses.

Four open-source Actions. A Flare account is required.
PR review works without connecting a cloud account.

infra/iam.tfIllustrative example
− role = "roles/viewer"+ role = "roles/editor"
Permission expansion

A broader role for the workload

Editor expands this identity’s potential permissions. Effective access still depends on resource policies and other controls.

Next stepRestore the narrower role and add only the permissions the workload needs.

Illustrations of expected behavior, not a live scan. See this example’s production review.

From the first diff
to the next investigation.

Start with one Action. Add the others where they fit your team’s security workflow.

Before merge

PR security check

View Action and setup

Review Terraform, CloudFormation and IAM changes. Get findings with file references, explanations and suggested fixes in a pull request comment.

Needs
Flare API key. No cloud connector required.
Produces
PR comment and configurable pass/fail threshold.
After a release

Deploy review

View Action and setup

Queue a comparison of cloud audit activity before and after a deployment. Flare waits for post-deploy activity to accumulate before analysis.

Needs
Supported cloud connector and its webhook token.
Produces
Queued analysis and results in the Flare dashboard.
During an investigation

Incident scope

View Action and setup

Choose an audit-log time window and request an analysis with an event timeline, findings and questions to investigate.

Needs
Supported cloud connector, Flare API key and issues: write.
Produces
GitHub Issue with the incident analysis.
On a schedule

Security changelog

View Action and setup

Create a daily or weekly account of changes in Google Cloud audit logs, with a summary your team can review in GitHub.

Needs
GCP connector, scheduled analysis and webhook token.
Produces
Markdown, JSON and an optional GitHub Issue.

Your first PR review.

  1. Create a Flare API key

    Create an account, then open Settings → API Keys.

  2. Add a repository secret

    In GitHub, open Settings → Secrets and variables → Actions. Save the key as FLARE_API_KEY.

  3. Add the workflow

    Save this example as .github/workflows/flare.yml. Start with fail-on: none to review findings without blocking merges.

The example pins a release version. For stronger supply-chain control, pin Actions to a verified full commit SHA. Adjust file paths to match your repository.

See all inputs and severity thresholdsRead the 8-point GitHub Actions security review →
.github/workflows/flare.yml
name: Flare security review
on:
  pull_request:
    paths:
      - '**/*.tf'
      - '**/*.tfvars'
      - '**/*-policy.json'
      - '**/*-role.json'
      - '**/cloudformation/**'
      - '**/k8s/**'
      - '**/helm/**'
permissions:
  contents: read
  pull-requests: write
jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: tryflare-ai/pr-security-check@v1.1.1
        with:
          token: ${{ secrets.FLARE_API_KEY }}
          api-url: https://tryflare.ai/api/webhooks/pr-check
          fail-on: none

Know what runs.
Know what leaves GitHub.

These Actions call Flare’s hosted service. Their source code is public; the analysis runs in Flare.

Read our privacy policy
What data is used for a PR review?

The Action sends relevant file diffs, filenames and repository/PR metadata to Flare. Flare redacts recognizable secrets from the diff before sending it to Anthropic for analysis. Redaction is not a guarantee that every sensitive value is removed. Flare saves the analysis result, and the Action can post it as a PR comment.

Will it block my pull request?

You choose the severity threshold with fail-on. The setup example uses none so your team can assess findings first. Findings are review assistance, not proof of exploitability or a substitute for security testing.

What happens on fork pull requests?

Fork pull requests and Dependabot runs without the Flare secret skip the review. Use pull_request; do not switch to pull_request_target to expose secrets to untrusted code.

What does it cost, and what are the limits?

The Actions are MIT-licensed. Hosted analysis requires a Flare account and uses service quotas. PR checks and incident analysis share the daily analysis allowance. Deploy and changelog requests also have connector-specific limits. See current early-access terms and each Action’s README.

Is this the GitHub audit-log integration?

No. These Actions review code changes or invoke cloud analysis from workflows. GitHub organization audit reports are a separate integration for organization activity.

Start with the next pull request.

Add the PR check, inspect the findings, and decide what your team wants to gate.