Skip to content

Commit

Permalink
ci: Attempting to fix slsa
Browse files Browse the repository at this point in the history
Attempting to get the slsa generator working with a few other changes

Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
  • Loading branch information
vonericsen committed Apr 29, 2024
1 parent a5f58da commit 995e6d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ jobs:
shell: bash

- name: Generate Hashes
if: ${{ matrix.config.publish_release }}
shell: bash
id: hash
run: |
Expand All @@ -285,7 +286,7 @@ jobs:
# https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/generic/README.md#provenance-for-artifacts-built-across-multiple-operating-systems
set -euo pipefail
(sha256sum -t ${{ format('./build/{0}{1}', env.DESTDIR, matrix.config.release_extension) }} || shasum -a 256 ${{ format('./build/{0}{1}', env.DESTDIR, matrix.config.release_extension) }}) > checksum
echo "hash-${{ matrix.release_name }}=$(base64 -w0 checksum || base64 checksum)" >> "${GITHUB_OUTPUT}"
echo "hash-${{ matrix.release_name }}=$(base64 -w0 checksum || base64 checksum)" >> "$GITHUB_OUTPUT"
- name: Uploading artifacts
uses: actions/upload-artifact@v4
Expand All @@ -309,6 +310,7 @@ jobs:
provenance:
needs: [build]
strategy:
fail-fast: false #don't cancel other jobs if one is failing
matrix:
#NOTE: this release_name MUST match EXACTLY the name used by the build job above!
release_name: [ "win-x64",
Expand Down

0 comments on commit 995e6d8

Please sign in to comment.