From 49d980acb09407a79fa5f9fe2d7011e92d0d8d95 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Sun, 29 Mar 2026 17:29:33 -0700 Subject: [PATCH] fixed github actions --- .github/workflows/release.yml | 8 +++++++- crates/kingfisher-rules/data/rules/etsy.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cf1000..af21408 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/crates/kingfisher-rules/data/rules/etsy.yml b/crates/kingfisher-rules/data/rules/etsy.yml index 7b89bca..b617efd 100644 --- a/crates/kingfisher-rules/data/rules/etsy.yml +++ b/crates/kingfisher-rules/data/rules/etsy.yml @@ -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