Skip to content

Commit a1ee165

Browse files
committed
validate download URLs against trusted domain
1 parent f5c6805 commit a1ee165

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/update-desktop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
return
5151
fi
5252
53+
if [[ "$url" != https://github.com/cryptomator/cryptomator/releases/download/* ]]; then
54+
echo "Unexpected download URL: $url" >&2
55+
exit 1
56+
fi
57+
5358
UPDATED_ASSETS=1
5459
RELEASE_URL="$url" RELEASE_DIGEST="${digest#sha256:}" yq -i "
5560
.releases.${key}.version = env(DESKTOP_VERSION) |

0 commit comments

Comments
 (0)