Skip to content

Commit 4fe8a7a

Browse files
authored
fix: adding provenance generation to manual publish workflow (#235)
Follow up to #212 to add release provenance when release is manually generated
2 parents 8c82608 + 30e3981 commit 4fe8a7a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/manual-sdk-release-artifacts.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
# Each of the platforms for which release-artifacts need generated.
3838
os: [ ubuntu-latest, windows-2022, macos-12 ]
3939
runs-on: ${{ matrix.os }}
40+
outputs:
41+
hashes-linux: ${{ steps.release-sdk.outputs.hashes-linux }}
42+
hashes-windows: ${{ steps.release-sdk.outputs.hashes-windows }}
43+
hashes-macos: ${{ steps.release-sdk.outputs.hashes-macos }}
4044
steps:
4145
- uses: actions/checkout@v3
4246
with:
@@ -50,3 +54,16 @@ jobs:
5054
github_token: ${{secrets.GITHUB_TOKEN}}
5155
sdk_path: ${{ needs.split-input.outputs.sdk_path}}
5256
sdk_cmake_target: ${{ needs.split-input.outputs.sdk_cmake_target}}
57+
release-sdk-provenance:
58+
needs: ['release-sdk']
59+
strategy:
60+
matrix:
61+
# Generates a combined attestation for each platform
62+
os: [ linux, windows, macos ]
63+
permissions:
64+
actions: read
65+
id-token: write
66+
contents: write
67+
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
68+
with:
69+
base64-subjects: "${{ needs.release-sdk.outputs[format('hashes-{0}', matrix.os)] }}"

0 commit comments

Comments
 (0)