01 / Accept a baseline
Generate a reviewable JSON report
Run this after configuring exclusions. Commit the file only after the remaining findings are understood.
repolens init
repolens scan . \
--format json \
--output .repolens/baselines/accepted.json \
--fail-on none
git add .repolens.json \
.repolens/baselines/accepted.json
git commit -m "chore: accept RepoLens baseline"
02 / Gate future changes
Compare in GitHub Actions
The release commit and external actions are pinned to full SHAs. Reports remain available as the job summary and downloadable artifacts.
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
with:
persist-credentials: false
- id: repolens
uses: rad1092/repolens@00c84775267424a640abbee86fd2b1a1e5f6c159 # v0.2.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
target: "."
config: ".repolens.json"
baseline: ".repolens/baselines/accepted.json"
fail-on: new-warning