Skip to content

test: run Provenant license/SBOM scan in CI - #27

Closed
mstykow wants to merge 4 commits into
masterfrom
test/provenant-action-demo
Closed

test: run Provenant license/SBOM scan in CI#27
mstykow wants to merge 4 commits into
masterfrom
test/provenant-action-demo

Conversation

@mstykow

@mstykow mstykow commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Test PR to exercise the Provenant GitHub Action live on this repo.

Adds .github/workflows/provenant.yml (runs on PRs) which:

  • Scans the checkout for licenses, packages, and copyrights.
  • Evaluates an example policy (.provenant/license-policy.yml): GPL/AGPL = error, MIT = warning.
  • Gates the job with fail-on: error (no GPL/AGPL here, so it passes).
  • Writes SARIF and uploads it to code scanning (MIT files surface as warning alerts).
  • Archives the JSON scan report as a build artifact.

Purely additive (a workflow + a policy file); nothing else in the repo changes.

Runs getprovenant/provenant-action on PRs: scans for licenses, packages, and
copyrights; evaluates an example license policy (GPL/AGPL = error, MIT =
noted); uploads SARIF to code scanning; and archives the JSON report.
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

mstykow added 3 commits July 12, 2026 13:19
The license-policy file names licenses (gpl-3.0, agpl-3.0), which the scanner
detected in that file itself and tripped the error gate. Ignore the config dir.
Add a push:[master] trigger so results populate Security -> Code scanning (the
tab is default-branch scoped). Bump checkout v4->v7, upload-artifact v4->v7, and
codeql-action/upload-sarif v3->v4 to clear the Node20/CodeQL-v3 deprecations.
@mstykow mstykow closed this Jul 12, 2026
@mstykow
mstykow deleted the test/provenant-action-demo branch July 12, 2026 12:28
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.

2 participants