GitHub Action: codeloop-verify@v1
Drop CodeLoop into any GitHub repository and gate every PR with a real confidence score. The action installs the codeloop CLI, runs verify + gate-check, posts a sticky PR comment with the score, and publishes a signed Verified by CodeLoop badge to embed in your README.
Minimal workflow
# .github/workflows/codeloop.yml
name: CodeLoop Verify
on:
pull_request:
push:
branches: [main]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Run CodeLoop
uses: codeloop/codeloop-verify@v1
with:
api-key: ${{ secrets.CODELOOP_API_KEY }}
threshold: "94"Inputs
| Input | Default | Description |
|---|---|---|
api-key | — | Required. CodeLoop API key. Store in repo Secrets as CODELOOP_API_KEY. |
threshold | 94 | Minimum gate confidence (percentage) required to pass. |
platform | auto | Override platform detection: web, node, flutter, xcode, android, dotnet. |
working-directory | . | Path to the project root inside the repo. |
post-comment | true | Post (or update) a sticky PR comment with the gate result. |
fail-on-gate | true | Fail the workflow if gate confidence is below threshold. |
publish-badge | true | Publish the gate result to /badge/<repo>.svg for embedding. |
Outputs
The action exposes run-id, confidence, pass, and summary so you can chain them into downstream steps (e.g. block deploys when steps.verify.outputs.pass != 'true').
Verified by CodeLoop badge
Once publish-badge has run at least once, embed the badge in your README:
The badge encodes the latest gate confidence and the run id — clicks link to the run detail page on codeloop.tech/showcase.