GitHub Actions to make Develocity Provenance Governor part of your GitHub workflows.
uses: gradle/develocity-provenance-governor-actions/publish@main
with:
attestation-publisher-url: 'https://develocity-provenance-governor.example.com'
build-scan-ids: eo5xxyg3drtoc
build-scan-queries: 'value:"CI run=${{ github.run_id }}"'
subject-type: oci
subject-name: java-payment-calculator
subject-version: 1.2.3
subject-digest: 1a6b2bf83435f2a9ccd33519ad3e817bf79aee6af1c7a15d26d8a256bfa9cc94
subject-repository-url: develocitytia.jfrog.io/docker-trialRequires a GitHub OIDC token.
One of build-scan-ids or build-scan-queries must be provided.
Multiple IDs and queries may be specified, one per line.
Queries use
the Develocity advanced query syntax.
There is also a subject-namespace field that can be used with subject types that require it.
Tip
You can use the Common Custom User Data plugins
(Gradle,
Maven,
Sbt)
to automatically add GitHub-related custom values to Build Scans,
like the CI run value used in the example configuration.
uses: gradle/develocity-provenance-governor-actions/enforce@main
with:
policy-evaluator-url: 'https://develocity-provenance-governor.example.com'
subject-type: oci
subject-name: java-payment-calculator
subject-version: 1.2.3
subject-digest: 1a6b2bf83435f2a9ccd33519ad3e817bf79aee6af1c7a15d26d8a256bfa9cc94
subject-repository-url: develocitytia.jfrog.io/docker-example-repo
policy-scan: ci-enforcementRequires a GitHub OIDC token.
There is also a subject-namespace field that can be used with subject types that require it.