Skip to content

Commit

Permalink
add it
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Petgrave <[email protected]>
  • Loading branch information
ramonpetgrave64 committed Aug 8, 2024
1 parent ce8a7f2 commit 99c0a56
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/debug.generic-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,51 @@ jobs:
--source-uri github.com/slsa-framework/slsa-github-generator \
--source-branch ramonpetgrave64-internal-builder-sigstore-bundle \
--print-provenance
provenance3:
needs: build
permissions:
id-token: write # For signing.
contents: read # For asset uploads.
actions: read # For the entrypoint.
uses: ./.github/workflows/generic_generator_slsa3_alt.yml

Check failure on line 159 in .github/workflows/debug.generic-generator.yml

View workflow job for this annotation

GitHub Actions / shellcheck

could not read reusable workflow file for "./.github/workflows/generic_generator_slsa3_alt.yml": open /home/runner/work/slsa-github-generator/slsa-github-generator/.github/workflows/generic_generator_slsa3_alt.yml: no such file or directory ``` uses: ./.github/workflows/generic_generator_slsa3_alt.yml ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
with:
base64-subjects: "${{ needs.build.outputs.hashes }}"
provenance-name: my-debug-prov.build.slsa
rekor-log-public: true

verify3:
needs: provenance3
runs-on: ubuntu-latest
steps:
- name: Download artifact1
uses: actions/download-artifact@v4
with:
name: artifact1
- name: Download artifact2
uses: actions/download-artifact@v4
with:
name: artifact2
- name: Download provenance
uses: slsa-framework/slsa-github-generator/actions/nodejs/[email protected]
with:
name: ${{ needs.provenance3.outputs.provenance-download-name }}
sha256: ${{ needs.provenance3.outputs.provenance-download-sha256 }}
- uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Setup slsa-verifier
run: go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier@testing-from-slsa-github-generator-repo-branches
- name: Verify
env:
PROVENANCE_PATH: ${{ needs.provenance3.outputs.provenance-download-name }}/${{ needs.provenance3.outputs.provenance-name }}
run: |

Check failure on line 190 in .github/workflows/debug.generic-generator.yml

View workflow job for this annotation

GitHub Actions / shellcheck

shellcheck reported issue in this script: SC2086:info:5:21: Double quote to prevent globbing and word splitting ``` run: | ^~~~ ```
pwd
ls -lahR
SLSA_VERIFIER_TESTING=1 slsa-verifier verify-artifact \
artifact1 artifact2 \
--provenance-path $PROVENANCE_PATH \
--source-uri github.com/slsa-framework/slsa-github-generator \
--source-branch ramonpetgrave64-internal-builder-sigstore-bundle \
--print-provenance

0 comments on commit 99c0a56

Please sign in to comment.