Skip to content

MikeOps Guard v0.2.0

Choose a tag to compare

@dotmann-commits dotmann-commits released this 22 Oct 14:10
· 9 commits to main since this release

Hardening release. Guard now tells you when a scan did not cover everything, never lets a scanned repository talk it into unsafe behaviour, and cleans up after itself on timeout or Ctrl+C. Findings on real repositories are unchanged from 0.1.0 apart from the new app-security scanner.

Truthful results

  • New report status: passed, failed or incomplete. A scan where a scanner failed, was missing, was disabled by the config, or could not read some files is now incomplete instead of looking clean. Console and HTML show INCOMPLETE. passed and the exit codes keep their 0.1.0 meaning.
  • Skipped files are reported. Each scanner lists files it could not check (up to 20, plus a count). Skipped workflows, SQL, env files and Supabase configs mark the scanner incomplete. Oversized JavaScript bundles are listed only, since they are almost always generated.
  • Fingerprint v2 ignores line numbers, so ignore rules keep matching when code moves. Ignore rules written with 0.1.0 fingerprints still match.

Safety on untrusted repositories

  • Terminal control characters are stripped from every string that comes from the scanned repository or the AI model.
  • Known credential formats are redacted in findings, scanner errors, reports and anything sent to Ollama.
  • A config file inside the scanned repository may only use a loopback Ollama host.
  • Relative PATH entries are ignored when finding scanner binaries.
  • The HTML report's CSP allows only its own script, by hash.
  • File reads are bounded (1 MB for workflows, 512 KB for app source), and at most 32 files are read at once.

Process handling

  • Scanners run in their own process group on macOS and Linux. A timeout or cancel stops the scanner and anything it started, such as git under Gitleaks.
  • Ctrl+C stops running scanners, removes temporary files, writes no partial report and exits with the new code 130. A second Ctrl+C exits immediately.

New scanner

  • app-security: Supabase tables without RLS, permissive write policies, public storage buckets, and service role keys or secrets exposed to frontend code. Checked against a labelled benchmark with no misses and no false positives on the fixtures.

Other

  • Requires Node.js 20.3 or newer.
  • Paths under symlinked directories (macOS /tmp, /var) are reported correctly.
  • scripts/install-scanners.sh supports macOS for trivy and osv-scanner, using official prebuilt releases verified against published checksums.
  • trivy config skips node_modules and .git: same findings, faster.
  • CI runs on Node 20 and 22 with all five real scanners installed. 126 tests.

Full audit and measurements: docs/AUDIT-2026-10-18.md.

Use the action

- uses: dotmann-commits/mikeops-guard@8847a1a16fc9b09f664f56f55a268d02f39e679b # v0.2.0
  with:
    fail-on: high