Skip to content

OpenGrep Scanner

OpenGrep SAST Scanner - Reusable Workflow

Runs the OpenGrep scanner via the argus Python CLI. Equivalent to: python -m argus scan opengrep

For GHES users: Use the composite action directly instead of this workflow. See: examples/github-enterprise/sast-only.yml

uses: huntridge-labs/argus/.github/workflows/scanner-opengrep.yml@1.15.2-rc.0

Triggers

  • Manual dispatch
  • Reusable (called by other workflows)

Permissions

Scope Access
contents read
security-events write
actions read
pull-requests write

Inputs

Input Description Required Default
allow_failure When true (default) the scan never fails the job (non-blocking); when false, a scan crash or a fail_on_severity breac... boolean No True
post_pr_comment Whether to post PR comments boolean No True
enable_code_security Whether GitHub Code Security is enabled for this repository boolean No False
fail_on_severity Fail the job if vulnerabilities at or above this severity are found. Options: none, low, medium, high. Set to "none" ... string No none
opengrep_config OpenGrep config (e.g., auto, p/default, p/security-audit, or path to custom rules) string No auto
opengrep_paths Paths to scan (space-separated) string No .

Jobs

opengrep-analysis โ€” OpenGrep SAST

Runs on: ubuntu-latest ยท Timeout: 20 minutes ยท Continue on error: Yes

Steps:

  1. Checkout repository โ€” actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
  2. Set up Python โ€” actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
  3. Install Argus โ€” huntridge-labs/argus/.github/actions/setup-argus@1.15.2-rc.0
  4. Run scan
  5. Upload artifacts โ€” actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
  6. Build scanner summary
  7. Upload scanner summary โ€” actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
  8. Upload SARIF โ€” github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066
  9. Comment PR with results โ€” huntridge-labs/argus/.github/actions/comment-pr@1.15.2-rc.0