Skip to content

Commit 3a702e2

Browse files
author
Val Brodsky
committed
Still fixing
1 parent 29f7129 commit 3a702e2

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Labelbox Python SDK Provenance Generation
2+
3+
inputs:
4+
subjects:
5+
6+
runs:
7+
using: "composite"
8+
provenance_python:
9+
needs: [build]
10+
permissions:
11+
actions: read
12+
contents: write
13+
id-token: write # Needed to access the workflow's OIDC identity.
14+
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
15+
with:
16+
base64-subjects: "${{ inpits.subjects }}"
17+
upload-assets: true
18+
upload-tag-name: v.6.0.0 # Tag from the initiation of the workflow

.github/workflows/lbox-publish.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
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,10 @@ 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: ./.github/actions/provenance
9898
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
99+
subject: ${{ env.HASH_VAR }}
103100

104101
test-build:
105102
needs: ['path-filter']

0 commit comments

Comments
 (0)