Skip to content

Commit df3b87a

Browse files
authored
feat(ci): Include source code to chainloop attestation (#1963)
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent a24c083 commit df3b87a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,13 @@ jobs:
176176
run: |
177177
chainloop attestation --name slsa-attestation add --value ${{ steps.slsa-attest.outputs.bundle-path }} --kind SLSA_PROVENANCE --attestation-id ${{ env.ATTESTATION_ID }}
178178
179+
- name: Include source code on attestation
180+
run: |
181+
# This needs to run AFTER goreleaser to make sure the source code is available
182+
183+
gh release download ${{ github.ref_name }} -A tar.gz -O source-code.tar.gz
184+
chainloop attestation add --name source-code --value source-code.tar.gz --kind ARTIFACT --attestation-id ${{ env.ATTESTATION_ID }}
185+
179186
- name: Bump Chart and Dagger Version
180187
run: .github/workflows/utils/bump-chart-and-dagger-version.sh deployment/chainloop extras/dagger ${{ github.ref_name }}
181188
- name: Bump Project Version

0 commit comments

Comments
 (0)