Skip to content

Commit 347d2f5

Browse files
author
Val Brodsky
committed
Still fixing
1 parent 29f7129 commit 347d2f5

File tree

2 files changed

+24
-7
lines changed

2 files changed

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

.github/workflows/lbox-publish.yml

Lines changed: 7 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,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']

0 commit comments

Comments
 (0)