Skip to content

feat: expose --usage, --only-used, --sarif, and --no-cache in GitHub Action#344

Merged
sonukapoor merged 1 commit into
mainfrom
feature/issue-343-action-flags
May 13, 2026
Merged

feat: expose --usage, --only-used, --sarif, and --no-cache in GitHub Action#344
sonukapoor merged 1 commit into
mainfrom
feature/issue-343-action-flags

Conversation

@sonukapoor
Copy link
Copy Markdown
Collaborator

Exposes four CLI flags that were previously unavailable in the GitHub Action composite workflow.

  • usage — scan source files to detect which vulnerable packages are actually imported
  • only-used — only report findings for packages imported in source code (implies usage)
  • sarif — write SARIF 2.1.0 output for GitHub Code Scanning upload
  • no-cache — skip the OSV query cache; defaults to true in CI since runners are ephemeral

Closes #343

…Action

Add four new inputs to action.yml. --no-cache defaults to true since CI
runners are ephemeral and always benefit from fresh OSV results.

Closes #343
@sonukapoor sonukapoor merged commit 583aaf8 into main May 13, 2026
5 checks passed
@sonukapoor sonukapoor deleted the feature/issue-343-action-flags branch May 13, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Expose --usage and --only-used in the GitHub Action

1 participant