mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-03 08:20:30 +02:00
scripts: make sure signature files have unique names
To fix a simple attack where the same file would be uploaded multiple times under the same name, we make sure we only count unique file names.
This commit is contained in:
parent
c8987ec2c5
commit
0984638a74
@ -103,6 +103,11 @@ function verify_signatures() {
|
||||
MANIFEST=$(echo $ASSETS | jq -r "$MANIFEST_SELECTOR")
|
||||
SIGNATURES=$(echo $ASSETS | jq -r "$SIGNATURE_SELECTOR")
|
||||
|
||||
# We need to make sure we have unique signature file names. Otherwise someone
|
||||
# could just upload the same signature multiple times (if GH allows it for
|
||||
# some reason).
|
||||
SIGNATURES=$(echo $ASSETS | jq -r "$SIGNATURE_SELECTOR" | sort | uniq)
|
||||
|
||||
# Download the main "manifest-*.txt" and all "manifest-*.sig" files containing
|
||||
# the detached signatures.
|
||||
echo "Downloading $MANIFEST"
|
||||
|
Loading…
x
Reference in New Issue
Block a user