File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Labelbox Python SDK Provenance Generation
2+
3+ inputs :
4+ subjects :
5+ required : true
6+ type : string
7+ runs :
8+ using : " composite"
9+ steps :
10+ - name : upload
11+ uses :
slsa-framework/slsa-github-generator/.github/workflows/[email protected] 12+ with :
13+ base64-subjects : " ${{ inputs.subjects }}"
14+ upload-assets : true
15+ upload-tag-name : v.6.0.0 # Tag from the initiation of the workflow
Original file line number Diff line number Diff line change 7171 - name : " Generate hashes"
7272 id : hash
7373 run : |
74- cd dist && echo "hashes- ${{matrix.package}}=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
74+ cd dist && echo "hashes_ ${{ matrix.package }}=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
7575 - uses : actions/upload-artifact@v4
7676 with :
7777 name : build-${{ matrix.package }}
@@ -93,13 +93,13 @@ jobs:
9393 run : |
9494 HASH_VAR="hashes-${{ matrix.package }}"
9595 echo "HASH_VAR=$HASH_VAR" >> $GITHUB_ENV
96- echo "Using hash: ${{ env.HASH_VAR }}"
97- -
uses :
slsa-framework/slsa-github-generator/.github/workflows/[email protected] 96+ echo "Using hash: ${{ env.HASH_VAR }}"
97+ - uses : actions/checkout@v4
98+ with :
99+ ref : ${{ github.head_ref }}
100+ - uses : ./.github/actions/provenance
98101 with :
99- private-repository : true
100- base64-subjects : " ${{ env.HASH_VAR }}"
101- upload-assets : true
102- upload-tag-name : v.6.0.0 # Tag from the initiation of the workflow
102+ subject : ${{ env.HASH_VAR }}
103103
104104 test-build :
105105 needs : ['path-filter']
You can’t perform that action at this time.
0 commit comments