only run if environment is not ghes

This commit is contained in:
David Daly
2024-01-30 14:02:59 +00:00
committed by GitHub
parent b0301f588c
commit baee642dcc
+1
View File
@@ -49,6 +49,7 @@ runs:
- name: Generate Provenance Attestation
uses: github-early-access/generate-build-provenance@main
id: build-provenance
if: contains(github.server_url, 'github.com') || contains(github.server_url, 'ghe.com')
with:
subject-name: ${{github.repository}}_${{github.ref}}
subject-digest: ${{steps.publish.outputs.package-manifest-sha}}