@@ -14,8 +14,9 @@ inputs:
1414 upload :
1515 description : >-
1616 Whether or not to upload the file and attestation to the release. If this
17- is set to false, then the atteastion will still be generated and attached as
18- an artifact to the workflow, but won't be uploaded to the release.
17+ is set to false, then the file will be uploaded to the job as an artifact,
18+ but no atteastion will be generated and the artifact won't be uploaded
19+ to the release.
1920 default : true
2021 user-token :
2122 description : >-
@@ -31,7 +32,6 @@ inputs:
3132 to the falue of `files`.
3233 required : false
3334
34-
3535runs :
3636 using : " composite"
3737 steps :
@@ -49,12 +49,14 @@ runs:
4949 fi
5050 echo "attestation-name=$name" >> $GITHUB_OUTPUT
5151 - name : Attest Build Provenance
52+ if : inputs.upload == 'true'
5253 id : provenance
5354 uses : actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
5455 with :
5556 subject-path : ${{ inputs.files }}
5657
5758 - name : Rename attestation file
59+ if : inputs.upload == 'true'
5860 shell : bash
5961 run : |
6062 mv ${{ steps.provenance.outputs.bundle-path }} ${{ steps.vars.outputs.attestation-name }}.jsonl
6567 name : ${{ steps.vars.outputs.attestation-name }}
6668 path : |
6769 ${{ inputs.files }}
68- ${{ steps.vars.outputs.attestation-name }}.jsonl
70+ ${{(inputs.upload == 'true' && format('{0}.jsonl', steps.vars.outputs.attestation-name)) || '' }}
6971
7072 - name : Install Python Requirements
7173 if : inputs.upload == 'true'
0 commit comments