GitHub Action for the Seedwing enforcer.
- uses: actions/checkout@v3
- name: Enforce Seedwing policies
uses: seedwing-io/enforcer-action@v1
with:
enforcer-config: .enforcer.yaml
source: pom.xml
Policy file policy.dog
example:
pattern not-vulnerable = {
purl: uri::purl(osv::scan-purl(openvex::from-osv(openvex::not-affected)))
}
Enforcer config file .enforcer.yaml
:
dependencies:
policy: ./policy.dog
requires: "not-vulnerable"