From 8044f5c5bac4e916bcc3281d82616615ac613188 Mon Sep 17 00:00:00 2001 From: Enguerrand Allamel Date: Mon, 16 Dec 2024 15:36:47 +0100 Subject: [PATCH] add bundle data --- .github/workflows/slsa-generator-nodejs-custom.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/slsa-generator-nodejs-custom.yaml b/.github/workflows/slsa-generator-nodejs-custom.yaml index 61104ab..b400a94 100644 --- a/.github/workflows/slsa-generator-nodejs-custom.yaml +++ b/.github/workflows/slsa-generator-nodejs-custom.yaml @@ -134,7 +134,8 @@ jobs: -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/${{ github.repository }}/attestations \ - -d "{\"value\": $(cat $ATTESTATION_PATH)}" \ + -d "{\"value\": \"$(cat $ATTESTATION_PATH)\"}" \ + -d "{\"value\": {\"bundle\": \"$(cat $ATTESTATION_PATH)\"}}" \ -w "%{http_code}" -o response.json) http_code=$(jq -r '.status' response.json)