Output format: terminal, json, markdown, or sarif.
actionscope scan . -f sarif
--output-file
-o
none
Write output to a file. Terminal mode writes Markdown when this is used.
actionscope scan . -f json -o scan.json
--fail-on
none
none
Enable CI gating at critical, high, medium, or low. With no confidence or new-only option, this preserves aggregate-risk behavior.
actionscope scan . --fail-on high
--new-only
none
False
Apply --fail-on only to findings not already eligible under the loaded baseline. This includes new findings and existing findings that cross the configured severity or confidence threshold. Implies --load-state.
actionscope scan . --fail-on high --new-only
--min-confidence
none
none
Gate only findings at or above high, medium, or low confidence. Requires --fail-on.
actionscope scan . --fail-on high --min-confidence high
--require-baseline
none
False
Exit with code 2 when --new-only cannot load an exact version-2 baseline.
actionscope scan . --fail-on high --new-only --require-baseline
--aws-verify
none
False
Fetch live AWS IAM role policies with read-only IAM API calls. Requires actionscope[aws] and AWS credentials.
actionscope scan . --aws-verify
--no-color
none
False
Disable terminal color output.
actionscope scan . --no-color
--quiet
-q
False
Suppress terminal output, useful with --output-file.
actionscope scan . -q -o report.md
--save-state
none
False
Save compact scan state to .actionscope/last_scan.json.
# Human-readable output
actionscopescan.
# CI JSON output
actionscopescan.--output-formatjson--output-fileactionscope.json
# GitHub Code Scanning SARIF
actionscopescan.--output-formatsarif--output-fileactionscope.sarif
# Fail CI on high or critical findings
actionscopescan.--fail-onhigh
# Recommended: fail only on new, high-confidence findings
actionscopescan.--load-state--fail-onhigh--new-only\--min-confidencehigh
# Compare with the previous scan
actionscopescan.--load-state--save-state
# Inspect external reusable workflows referenced by jobs.<id>.uses.# This example assumes GITHUB_TOKEN is already configured in the environment.
actionscopescan.--github-token"$GITHUB_TOKEN"# Guarantee that ambient credentials cannot trigger API calls
actionscopescan.--offline
Create a validated starter .actionscope.yml with examples for IAM action
overrides, hard blocks, custom escalation paths, suppressions, and deploy-job
calibration.
Fetch GitHub Actions malware advisories and write a merged local cache. This is
the only command that refreshes advisory data; normal scans never update it in
the background.
The updater always preserves the bundled curated entries. GitHub's global
malware advisory endpoint is the primary feed. The OpenSSF malicious-packages
repository is probed conditionally and skipped cleanly while it has no stable
GitHub Actions feed.
Evaluate CI policy against a saved ActionScope JSON report without rescanning.
This is the command used by the Marketplace Action after producing its single
JSON scan.