Skip to content

Commit

Permalink
add fix for json format + debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand committed Dec 15, 2024
1 parent 00242de commit a7b5f44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/slsa-generator-nodejs-custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ jobs:
env:
ATTESTATION_PATH: ${{ steps.scan-attestations-signed.outputs.ATTESTATION_SIGNED_PATH }}
run: |
cat $ATTESTATION_PATH
response=$(curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-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)}" \
-w "%{http_code}" -o response.json)
http_code=$(jq -r '.status' response.json)
Expand Down

0 comments on commit a7b5f44

Please sign in to comment.