Skip to content

Commit

Permalink
Disable async signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed Jul 18, 2024
1 parent c5ba635 commit 272cb77
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/Sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,18 @@ echo 0 > "$STATUS_FILE"
sign_and_verify() {
local f="$1"
echo "$f.sig"
echo "$PGP_PASSWORD" | gpg --yes --passphrase --local-user "$PGP_KEY_ID" --output "$f.sig" --sign "$f" 2>/dev/null
echo "$PGP_PASSWORD" | gpg --yes --passphrase --local-user "$PGP_KEY_ID" --output "$f.sig" --sign "$f"
echo "::debug:: Signing of $f exited with status $?"
if ! gpg --verify "$f.sig" 2>/dev/null; then
echo "::error f=$f:: File signing failed for $f"
echo 1 > "$STATUS_FILE"
fi
}

# Iterate API files in parallel
for f in api/v*/*.json; do
sign_and_verify "$f" &
sign_and_verify "$f"
done

# Wait for all background processes to complete
wait

STATUS=$(cat "$STATUS_FILE")
rm "$STATUS_FILE"
exit "$STATUS"

0 comments on commit 272cb77

Please sign in to comment.