Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/ci/verify_release_maturin_tool_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@

def _download(filename: str) -> bytes:
url = f"https://github.com/PyO3/maturin/releases/download/v1.15.0/{filename}"
with urlopen(Request(url, headers={"User-Agent": "cwl-release-gate"}), timeout=60) as response:
# URL is a fixed https://github.com prefix; only the vetted asset filename varies.
with urlopen(Request(url, headers={"User-Agent": "cwl-release-gate"}), timeout=60) as response: # nosec B310
raw = response.read(MAX_ASSET_BYTES + 1)
if len(raw) > MAX_ASSET_BYTES:
raise ValueError("maturin release asset exceeds inspection limit")
Expand Down
Loading