ci(trivy): adopt centralized accepted-license policy#10
Merged
Conversation
Bump reusable-trivy.yml to the merged SHA so this repo inherits the org accepted-license allowlist (modeled-information-format/.github#27) and remove the now-redundant per-repo trivy.yaml superseded by the central policy.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s Trivy gate to use a centralized, organization-managed accepted-license policy provided by the reusable-trivy.yml workflow, and removes the now-redundant per-repo Trivy config to avoid shadowing the centralized policy.
Changes:
- Remove the repository-root
trivy.yamlconfig that was previously auto-loaded by Trivy. - Update the SHA pin for
modeled-information-format/.github’sreusable-trivy.ymlin both release and quality gate workflows to inherit the centralized policy.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
trivy.yaml |
Removes local Trivy config so the centralized policy provided by the reusable workflow is the single source of truth. |
.github/workflows/release.yml |
Bumps the pinned reusable Trivy workflow SHA used during release gating. |
.github/workflows/quality-gates.yml |
Bumps the pinned reusable Trivy workflow SHA used for the main CI quality gates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adopt the centralized Trivy accepted-license policy from
reusable-trivy.yml.The reusable now writes the org accepted-license allowlist to
$RUNNER_TEMP/trivy.yamland passes it viatrivy-config, so thelicensescanner stops surfacing every transitive dependency license as its own code-scanning alert. This bumps thereusable-trivy.ymlpin to the merged SHA so this repo inherits that policy.The per-repo
trivy.yamlis removed because the central policy supersedes it (it folds the sameskip-dirsand the accepted-license list into one source of truth).trivy --configreplaces, rather than merges with, an auto-loaded repo config, so keeping a local one would just shadow the central policy.CVE gating via OSV-Scanner is unchanged; GPL/AGPL and forbidden licenses remain flagged.
Part of modeled-information-format/.github#27