Skip to content

Commit

Permalink
Update slsa-generic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Jul 9, 2023
1 parent c5b711d commit 12d6344
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/slsa-generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
digests: ${{ steps.hash.outputs.digests }}
subjects-as-file: ${{ steps.subjectfile.outputs.as-file }}
digests-as-file: ${{ steps.subjectfile.outputs.handle }}

steps:
# ========================================================
Expand Down Expand Up @@ -61,12 +61,7 @@ jobs:
- name: Share the file
id: subjectfile
run: |
set -euo pipefail
obj='{"name:":"filename-rand", "sha256": "abcdef"}'
echo "${obj}" | jq
b64_obj=$(echo "${obj}" | base64 -w0)
echo "::set-output name=as-file::${b64_obj}"
uses: laurentsimon/slsa-github-generator/actions/generator/generic/create-base64-subjects-from-file@feat/large-subjects
#uses: slsa-framework/slsa-github-generator/.github/actions/secure-upload-artifact@main

provenance:
Expand All @@ -81,6 +76,6 @@ jobs:
uses: laurentsimon/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@feat/large-subjects
with:
#base64-subjects: "${{ needs.build.outputs.digests }}"
base64-subjects-as-file: "${{ needs.build.outputs.subjects-as-file }}"
base64-subjects-as-file: "${{ needs.build.outputs.digests-as-file }}"
upload-assets: true # Optional: Upload to a new release
#compile-generator: true

0 comments on commit 12d6344

Please sign in to comment.