Skip to content

Commit

Permalink
compile builder
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Petgrave <[email protected]>
  • Loading branch information
ramonpetgrave64 committed Aug 12, 2024
1 parent eb5eeb6 commit e9b97df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/builder_go_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,18 +319,20 @@ jobs:
go-provenance-name: ${{ steps.sign-prov.outputs.signed-provenance-name }}
go-provenance-sha256: ${{ steps.sign-prov.outputs.signed-provenance-sha256 }}
steps:
- name: Generate builder
id: generate-builder
continue-on-error: true
uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@main
- name: Checkout builder repository
uses: slsa-framework/slsa-github-generator/.github/actions/secure-builder-checkout@main
with:
repository: "${{ needs.detect-env.outputs.repository }}"
ref: "${{ needs.detect-env.outputs.ref }}"
go-version: "1.22"
binary: "${{ env.BUILDER_BINARY }}"
compile-builder: "true"
directory: "${{ env.BUILDER_DIR }}"
allow-private-repository: ${{ inputs.private-repository }}
path: __BUILDER_CHECKOUT_DIR__

- name: Download builder
uses: ./__BUILDER_CHECKOUT_DIR__/.github/actions/secure-download-artifact
with:
name: "${{ env.BUILDER_BINARY }}-${{ needs.rng.outputs.value }}"
path: "${{ env.BUILDER_BINARY }}"
sha256: "${{ needs.builder.outputs.go-builder-sha256 }}"
set-executable: true

- name: Create and sign provenance
id: sign-prov
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debug.generic-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
uses: ./.github/workflows/builder_go_slsa3.yml
with:
go-version: 1.22
compile-builder: true

go-verify:
needs: generic-provenance
Expand Down

0 comments on commit e9b97df

Please sign in to comment.