stackhawk-hawkscan-ci-failure Cursor ruleA
stackhawk-hawkscan-ci-failure from stackhawk/agent-skills is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-ci-failure.mdc@git:20260630.b97573aPins git:20260630.b97573a in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- stackhawk/agent-skills
- Path
cursor/.cursor/rules/stackhawk-hawkscan-ci-failure.mdc- Versions recorded
- 2
- Latest version
- git:20260630.b97573a, committed Jun 30, 2026
- First version recorded
- May 27, 2026
- Size
- 9,125 bytes
- Repository stars
- 16
- License
- MIT
HawkScan CI failure semantics reference: exit codes 0/1/42, failureThreshold tuning, block-on-42 vs warn-only vs scheduled-baseline modes, retry strategy (don't retry 42), caching strategy (cache CLI/image, never findings), scheduled-vs-PR-trigger tradeoffs.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Failure Semantics Reference
How HawkScan signals scan outcomes in CI, when to block vs warn, and how to think about retries and caching.
## Exit Codes
| Exit code | Meaning | Pipeline action |
|---|---|---|
| `0` | Scan ran; no findings at or above `failureThreshold`. | Pass. |
| `1` | Scan failed before producing results (config error, app unreachable, auth failure, invalid `applicationId`, internal scanner error). | Fail. Do not retry — this is almost always a config issue that needs human attention. |
| `42` | Scan ran; findings met or exceeded `failureThreshold`. | **Real finding.** Either fail (block mode) or warn (warn-only mode), per the integration choice. |
Exit code 42 is the *intended success path of failure* — the scan worked, and it found something worth blocking on. Treating it like a flake (retrying, swallowing) defeats the purpose of running the scan.
## `failureThreshold` — Tuning the Block Line
`failureThreshold` in `stackhawk.yml` decides which severity levels trip exit code 42:
```yaml
app:
applicationId: ${APP_ID}
failureThreshold: High # one of: High, Medium, Low, All
```
| Value | Exit 42 when... |
|---|---|
…Read the whole file at its exact version.
How to install
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-ci-failure.mdc@sha256:62a3f150a675410bThe line at the top of this page pins the label git:20260630.b97573a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_2hbujl6k6yo3xkrw)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between May 27, 2026 and Jun 30, 2026, about one every 34 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260630.b97573a latest | 2026-06-30 | b97573a | 9,125 B | A | view · diff |
| git:20260527.f36433e | 2026-05-27 | f36433e | 8,818 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (9125 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
stackhawk/agent-skills · 16 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_2hbujl6k6yo3xkrw GET https://markdownregistry.com/api/v1/resolve?ref=stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-ci-failure.mdc GET https://markdownregistry.com/api/v1/blob/62a3f150a675410b97070c43e54a238b543bca41cbedea1db056e236313c7097
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.