RepoRefit / Developer tools
RepoRefit GitHub Action
Check every pull request automatically. The action runs on your own GitHub runner, reads the files only, and needs no token or secret.
Set up in one file
Create .github/workflows/reporefit.yml in your repository:
name: RepoRefit
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 3 * * 1'
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: reporefit/action@v1
with:
fail-on: highWhen it runs
- push: every commit to any branch.
- pull_request: when a pull request is opened or updated. Results appear as file annotations on the changed lines.
- workflow_dispatch: run it by hand from the Actions tab.
- schedule: for example every Monday at 03:00 UTC.
Inputs
| Input | Default | Meaning |
|---|---|---|
path | . | Folder to check, relative to the repository root. |
tool | all | Which checks to run (same IDs as the CLI). |
fail-on | high | Fail the step when a finding is at least this severe: high, medium, low or none. |
lang | en | Language of the summary and reports: en, ko, ja, zh-Hans. |
badge | Write a README badge SVG to this path. | |
ignore | Extra ignore patterns, one per line or comma-separated. |
Outputs
Use these in later steps, for example to post a comment or decide what to do next:
findings, high, medium, low, passed, evaluated, partial, fix-plan, report-md, report-jsonReports and the AI fix plan
The job summary shows the Markdown report. The Markdown and JSON reports and the AI fix plan are written to the runner's temp folder; upload them as an artifact if you want to keep them:
- uses: reporefit/action@v1
id: rr
with:
fail-on: medium
tool: secrets
lang: ko
- uses: actions/upload-artifact@v4
if: always()
with:
name: reporefit
path: |
${{ steps.rr.outputs.report-md }}
${{ steps.rr.outputs.report-json }}
${{ steps.rr.outputs.fix-plan }}Block merges on findings
The step fails (exit code 1) when a finding reaches fail-on. In Settings → Branches, add the job as a required status check to block merging until it passes.
Security
- Give the workflow only contents: read, and set persist-credentials: false on checkout.
- The action never runs the project's scripts, build or install commands. It only reads files.
- Use pull_request, not pull_request_target, so pull requests from forks cannot gain write access or secrets.
- No data leaves the runner: there is no RepoRefit server.