Skip to content

feat: add license-policy, fail-on, and sarif-file inputs for CI gating#1

Merged
mstykow merged 2 commits into
mainfrom
feat/ci-gating-inputs
Jul 11, 2026
Merged

feat: add license-policy, fail-on, and sarif-file inputs for CI gating#1
mstykow merged 2 commits into
mainfrom
feat/ci-gating-inputs

Conversation

@mstykow

@mstykow mstykow commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Surfaces the Provenant license-compliance gate as first-class action inputs so it's reachable from a workflow without hand-writing args:
    • license-policy — path to a YAML license-policy file.
    • fail-onerror | warning; fails the job (exit 3) when a scanned file matches a policy at or above that severity.
    • sarif-file — also write SARIF 2.1.0 of violations, for github/codeql-action/upload-sarif (pull-request + code-scanning alerts).
  • The entrypoint maps each input to the matching provenant scan flag when set; empty inputs are omitted.
  • Adds a README example that gates the build and uploads SARIF.

Depends on the corresponding CLI feature (--license-policy severity, --fail-on, --sarif) landing in a Provenant release; the wrapped image must be a version that supports those flags.

How to verify

The self-test CI builds the wrapper image and runs the action. Beyond that, entrypoint.sh argv assembly was verified for the new inputs (policy + fail-on + sarif produce provenant scan . --license-policy … --fail-on … --sarif … --json-pp …).

Checklist

  • Commits are signed off (git commit -s, DCO)
  • SPDX headers present on any new source files
  • Third-party GitHub Actions pinned by SHA

Surface the Provenant compliance gate as first-class inputs: `license-policy`
(YAML policy file), `fail-on` (error|warning; fails the job when a matching
license is found), and `sarif-file` (SARIF 2.1.0 for code-scanning upload). The
entrypoint maps each to the corresponding `provenant scan` flag when set. Adds a
README example that gates the build and uploads findings via upload-sarif.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Maxim Stykow <maxim.stykow@gmail.com>
… commits)

Signed-off-by: Maxim Stykow <maxim.stykow@gmail.com>
@mstykow
mstykow merged commit 131ad6d into main Jul 11, 2026
2 of 3 checks passed
@mstykow
mstykow deleted the feat/ci-gating-inputs branch July 11, 2026 17:53
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.

1 participant