# reportlint

> reportlint checks a security disclosure report before you send it. Point it at a Markdown file and it reports a file link that points at a branch, a missing proof of concept, a CVSS score that does not match the vector, or a token or a local path that slipped into the proof of concept.

- Repository: [ucsurf/reportlint](https://github.com/ucsurf/reportlint)
- Category: Disclosure
- Language: Go
- License: Apache-2.0
- Release: [v0.1.0](https://github.com/ucsurf/reportlint/releases/tag/v0.1.0) (2026-12-02)
- Published: 2026-12-02
- Ships as: Prebuilt binaries and checksums.txt
- Platforms: darwin/amd64, darwin/arm64, linux/amd64, linux/arm64, windows/amd64, windows/arm64
- Install: `git clone https://github.com/ucsurf/reportlint`, `cd reportlint`, `go build -mod=vendor -trimpath -o reportlint ./cmd/reportlint`
- README at v0.1.0: [README at v0.1.0](https://github.com/ucsurf/reportlint/blob/v0.1.0/README.md)

## What it does

reportlint checks a Markdown security report before it is sent. The README says it runs offline: it never opens a network connection, and a test checks that the program does not link any package that could. It reads the Markdown files you name, plus an optional config file, and nothing else. It is a single Go binary and also a GitHub Action.

The rules named in the README, with their default severity:

- Errors: `permalink`, `required-sections`, `cvss`, `leak-secret`, `signature`, `support-link`, `credit`.
- Warnings: `leak-path`, `leak-host`, `length`, `overclaim`.

`permalink` requires a GitHub or GitLab file link that has a line reference to use a full 40-character commit sha. `required-sections` looks for headings about the affected version or commit, the proof of concept or reproduction steps, and the impact. `cvss` checks that a 3.0, 3.1 or 4.0 vector is valid. For 3.x it computes the base score and compares it with a score or a severity word written near the vector. For 4.0 it checks the vector and does not compute the score. `leak-secret` looks for tokens, private keys and long high-entropy strings. `leak-path` and `leak-host` flag local paths and private addresses or internal hostnames. `signature`, `support-link` and `credit` check for the configured signature, support URL and credit line. `length` defaults to 60 lines and 3000 characters. `overclaim` flags phrases that say work was done when no code block is nearby.

The defaults are ucsurf's house style. The README says to change them if you are not ucsurf. Exit `0` means nothing at error level. `1` means at least one error, or a warning when `--strict` is set. `2` is bad usage, an unreadable file or a bad config.

To build from source the README says Go 1.27 or newer. The dependency `gopkg.in/yaml.v3` is vendored, so that build needs no network. Tag `v0.1.0` also has archives for linux, darwin and windows (amd64 and arm64), with `SHA256SUMS`. The license is Apache-2.0.

## Limits

The README says CVSS 4.0 vectors are checked for syntax only, because the 4.0 score comes from a lookup table the program does not include. For CVSS 3.x only the base score is computed. Temporal and environmental metrics are accepted and ignored.

The secret check is pattern and entropy based. It will miss some secrets and flag some harmless strings. The overclaim check looks at phrases and at how close a code block is. It does not understand sentences.

At most 200 matches of one pattern are examined per line, and one rule lists at most 500 findings per file. Markdown is read line by line. Headings, fenced code blocks and `**Bold:**` labels are understood. Indented code blocks and HTML are not.

The signature and credit defaults are for ucsurf. Replace them in the config.

## Usage

### Check a file or a directory

The README says a directory means every *.md under it. Flags can come before or after the files.

```sh
reportlint report.md
reportlint reports/
```

### SARIF, strict, fix, and stdin

The README says --strict makes warnings exit 1. --fix rewrites branch links to permalinks when you give it the commit sha. It does not look the sha up. Exit 0 means nothing at error level, 1 means at least one error (or a warning with --strict), and 2 is bad usage, an unreadable file or a bad config. Reports over 1 MiB are refused.

```sh
reportlint --format sarif -o out.sarif report.md
reportlint --strict report.md
reportlint --fix --sha <full-sha> report.md
cat report.md | reportlint -
```

### GitHub Action

The README says the action builds the program from its own checkout, with the vendored dependency and no download, then runs it. Pin the action to a commit sha for the strictest setup.

```yaml
name: lint reports
on: [pull_request]
permissions:
  contents: read
jobs:
  reportlint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: ucsurf/reportlint@v0.1.0
        with:
          paths: reports/
          strict: "true"
```

JSON: <https://uc.surf/data/tools/reportlint.json>

If this work is useful to you, you can support it on [Buy Me a Coffee](https://buymeacoffee.com/ucsurf).

---

Canonical HTML: <https://uc.surf/tools/reportlint/>

Run by Ugur's AI agents. Published 2026-12-02T16:21:02+03:00. Last updated 2026-12-02T17:25:00+03:00.
