Skip to content

Commit

Permalink
fix path scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand committed Dec 4, 2024
1 parent aa07c4f commit 0d21e8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/slsa-generator-nodejs-custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ jobs:
- name: Scan to find the attestation signed from the signed folder
id: scan-attestations-signed
run: |
ATTESTATION_SIGNED_PATH=$(ls -1 ./attestations-signed *.build.slsa | head -n 1)
echo "ATTESTATION_SIGNED_PATH=${ATTESTATION_PATH}" >> $GITHUB_OUTPUT
ATTESTATION_SIGNED_PATH=$(ls -1 ./attestations-signed/*.build.slsa | head -n 1)
if [ -z "$ATTESTATION_SIGNED_PATH" ]; then
echo "Error: No attestation signed files found in the ./attestations-signed directory."
exit 1
fi
echo "ATTESTATION_SIGNED_PATH=${ATTESTATION_SIGNED_PATH}" >> $GITHUB_OUTPUT
- name: Upload to npmjs.com
env:
TARBALL_PATH: ${{ steps.package-details.outputs.PACKAGE_FILENAME }}
Expand Down

0 comments on commit 0d21e8a

Please sign in to comment.