Repository navigation
Nightly scan
Gates per mode and a nightly workflow (v0.2, #28; moved from the README 2026-12-02). If this page and ADR 0021 disagree, the ADR wins.
The scan's mode picks the gate that judges it (ADR 0021):
| Mode | Gate (default) | Sandbox | Chosen by |
|---|---|---|---|
pr |
gates.pr (probable:critical) |
never: no build and no PoC, even with sandbox.enabled, so it never waits for verified findings |
the default |
nightly |
gates.nightly (verified:high) and gates.pr
|
builds the app and runs PoCs when sandbox.enabled
|
--mode nightly, or a GitHub Actions schedule event |
The mode is never a config key, so the scanned repository cannot pick it; --mode always wins. A nightly scan also reads gates.pr, so it never passes what a pr scan fails. Each mode reads its keys with the same rules: the policy's limits.gates.pr and limits.gates.nightly floor both in every mode, and the project file may only make either stricter. A nightly scan that could not verify (sandbox.enabled false, verification unavailable for any reason, or a PoC candidate that got no run) reads gates.nightly at probable, verified:high as probable:high, so a finding nothing verified fails the run instead of passing it. Each scan prints its gate on stderr, for example gate: nightly mode (GitHub Actions schedule event): gates.nightly "verified:high" (default) read as "probable:high": verification unavailable (no_runtime), and creep config explain ends with the mode and gate rows. A finding no PoC template can verify (ssrf, command_injection, code_injection, insecure_deserialization, nosql_injection, scanner findings) is read at probable in every nightly run, since nothing could verify it; accept one with a baseline entry (ADR 0022). A PoC that ran and never verified leaves its finding probable: gates.pr still fails a critical one, but a 0/5 probable high finding passes both default gates; set gates.nightly: probable:high in the user file or policy to fail on those too.
A nightly workflow. Everything creep trusts comes from outside the repository: the policy (model, endpoint, consent, sandbox) is written by the workflow, the model key is the only secret and reaches only the scan step, the token is read-only and every action is pinned by SHA. Replace the placeholders, and pull the images creep doctor lists first (creep never pulls):
# .github/workflows/creep-nightly.yml
name: creep nightly
on:
schedule:
- cron: "41 2 * * *" # a schedule event: nightly mode without a flag
workflow_dispatch:
permissions: {}
concurrency:
group: creep-nightly
cancel-in-progress: false
jobs:
nightly:
runs-on: ubuntu-latest
timeout-minutes: 150
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: "1.27"
cache: false
- name: Install creep
run: |
go install github.com/Ludocius/creep/cmd/creep@<release tag> # v0.6.0 and earlier: github.com/sneakercreepers/creep/cmd/creep
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- name: Policy, outside the repository
run: |
mkdir -p "$RUNNER_TEMP/creep"
cat > "$RUNNER_TEMP/creep/policy.yaml" <<'EOF'
defaults:
model: { contract: openai, endpoint: "https://<host>/v1", name: "<model>" }
egress: { allow: ["<host>"] }
sandbox: { enabled: true }
consent: ["https://<host>"] # the endpoint's origin; a command model takes the key creep doctor prints
EOF
# doctor probes the model, so it runs in the one step that has the key.
- name: Doctor, sandbox images and nightly scan
env:
CREEP_POLICY: ${{ runner.temp }}/creep/policy.yaml
CREEP_API_KEY: ${{ secrets.CREEP_API_KEY }}
run: |
creep doctor
docker pull "<each image doctor lists as missing, by digest>"
creep scan --mode nightlyExit 1 fails the job when a finding reaches gates.nightly or gates.pr, 4 when the run is incomplete. The reports are in .creep/; upload them with actions/upload-artifact (pinned by SHA) if you want them after the run. The pull request workflow is the same without sandbox and with creep scan (pr mode), on pull_request, never pull_request_target (which would run the pull request's code with the base repository's secrets). A pull_request run uses the pull request's own copy of the workflow, so protect .github/workflows with CODEOWNERS and make the scan a required check. The GitHub Action does the same: on a schedule event it runs nightly with no mode input, and mode: nightly sets --mode for any other event.
Home · Current release: latest
Guides: Quickstart · Sandbox · Verification statuses · CI with the Action · Nightly scan · Local models · FAQ
Reference: Commands and flags · Output and exit codes · Configuration · Models and presets · Calibration · Languages · Guarantees and limits · Roadmap
Contributing: Writing recipes · Using creep from an agent (MCP) · Sharing model results
- Architecture
- v0.1 Progress
- v0.2 Progress
- v0.3 Progress
- v0.4 Progress
- v0.5 Progress
- v0.6 Progress
- v0.7 Progress
- Decisions
- Development Workflow
- Release
- Install and verify
- Nightly scan
Repository · Roadmap · Install: brew tap Ludocius/creep https://github.com/Ludocius/creep, scoop bucket add creep https://github.com/Ludocius/creep (details)