Skip to content

Commit

Permalink
feat: push provenance after build on master
Browse files Browse the repository at this point in the history
  • Loading branch information
sgammon committed Jul 31, 2023
1 parent de889c8 commit 5e7352d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
experimental: ${{ matrix.experimental }}
java: ${{ matrix.java }}
coverage: true
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
provenance: ${{ fromJson(matrix.provenance) }}

codeql:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/step.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
required: false
type: boolean
default: true
push:
required: false
type: boolean
default: false
experimental:
required: false
type: boolean
Expand Down Expand Up @@ -143,4 +147,4 @@ jobs:
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.7.0
with:
base64-subjects: "${{ needs.build.outputs.hashes }}"
upload-assets: false
upload-assets: inputs.push

0 comments on commit 5e7352d

Please sign in to comment.