Allow GitHub branch archives through the github remote
patterns is a strict allowlist evaluated before mutable_patterns, so /archive/refs/heads/ downloads are denied despite the mutable entry. - Add heads .zip and .tar.gz to patterns - Add heads .zip to mutable_patterns and escape the tar.gz dots
This commit is contained in:
@@ -3,12 +3,17 @@ description: GitHub releases and files
|
||||
immutable_ttl: 0
|
||||
mutable_ttl: 7200
|
||||
mutable_patterns:
|
||||
- ".*/archive/refs/heads/.*.tar.gz$"
|
||||
- ".*/archive/refs/heads/.*\\.tar\\.gz$"
|
||||
- ".*/archive/refs/heads/.*\\.zip$"
|
||||
- "stalwartlabs/webadmin/releases/latest/download/webadmin.zip$"
|
||||
# iplocate IP databases (Git-LFS; the /raw/ path redirects to the LFS media host).
|
||||
- "iplocate/ip-address-databases/raw/.*/ip-to-asn/.*"
|
||||
- "iplocate/ip-address-databases/raw/.*/ip-to-country/.*"
|
||||
patterns:
|
||||
# Branch archives: patterns is a strict allowlist checked before
|
||||
# mutable_patterns, so heads must be listed in both.
|
||||
- ".*/archive/refs/heads/.*\\.tar\\.gz$"
|
||||
- ".*/archive/refs/heads/.*\\.zip$"
|
||||
- ".*/archive/refs/tags/.*.tar.gz$"
|
||||
- ".*/archive/refs/tags/.*\\.zip$"
|
||||
- "9p4/jellyfin-plugin-sso/.*/sso-authentication_.*.zip$"
|
||||
|
||||
Reference in New Issue
Block a user