fixed github actions

This commit is contained in:
Mick Grove 2026-03-29 17:29:33 -07:00
commit 49d980acb0
2 changed files with 8 additions and 2 deletions

View file

@ -438,7 +438,13 @@ jobs:
run: |
set -euo pipefail
cd assets
echo "hashes=$(sha256sum -- * | base64 -w0)" >> "$GITHUB_OUTPUT"
shopt -s nullglob
files=( * )
if [ ${#files[@]} -eq 0 ]; then
echo "Error: no release assets found to hash in $(pwd)" >&2
exit 1
fi
echo "hashes=$(sha256sum -- "${files[@]}" | base64 -w0)" >> "$GITHUB_OUTPUT"
provenance:
name: Generate SLSA provenance

View file

@ -41,7 +41,7 @@ rules:
method: GET
url: https://api.etsy.com/v3/application/openapi-ping
headers:
x-api-key: '{{ TOKEN }}'
x-api-key: '{{ TOKEN | split: ":" | first }}'
Accept: application/json
response_matcher:
- report_response: true