Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

omnicate/pre-commit-sast

Open more actions menu
 
 

Repository files navigation

pre-commit-sast

Repo containing hooks for SAST tools. Check out .pre-commit-config.yaml for additional SAST tools.

Trivy

Trivy configuration scanner with batch scanning for improved reliability.

Features

  • Serial execution: Prevents cache corruption from concurrent scans
  • Auto-detect ignore files: Supports .trivyignore, .trivyignore.yaml, and trivy-policy.yaml
  • Clean and simple: Minimal, focused implementation

Usage

- repo: https://github.com/jonny-wg2/pre-commit-sast
  rev: v0.0.3
  hooks:
    - id: trivyconfig
      args:
        - "--args=--severity HIGH,CRITICAL"

Ignore Files (Optional)

Create any of these files in your repo root - they're auto-detected:

  • .trivyignore - Simple list of IDs to ignore
  • .trivyignore.yaml - Structured ignores with paths and reasons

Auto-detection: The hook automatically finds these files unless you specify --ignorefile manually in your pre-commit config.

About

pre-comit SAST tools

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.