Allow GitHub branch archives through the github remote
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful

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:
2026-09-11 23:26:29 +10:00
parent 9ef54c7338
commit b76fddecb9
+6 -1
View File
@@ -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$"