feat: harden reviewed registry releases
All checks were successful
Standalone registry checks / check (push) Successful in 3m43s
All checks were successful
Standalone registry checks / check (push) Successful in 3m43s
This commit is contained in:
parent
0bcd4a2fc9
commit
e83f43d00f
37 changed files with 2856 additions and 286 deletions
|
|
@ -57,7 +57,7 @@ def safe_path(name):
|
|||
raise ValueError("unsafe archive path")
|
||||
allowed = {".rs", ".toml", ".md", ".py", ".sh", ".sql", ".yml", ".yaml",
|
||||
".service", ".timer"}
|
||||
if path.suffix not in allowed and path.name != ".gitignore" and name not in (
|
||||
if path.suffix not in allowed and path.name not in (".gitignore", "Dockerfile") and name not in (
|
||||
"LICENSE", "Cargo.lock", "UPSTREAM.json", ".gitignore"):
|
||||
raise ValueError(f"file is outside the source release allowlist: {name}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue