release: implement site registry v0.4 trust pipeline
This commit is contained in:
parent
2861337a45
commit
e26efc19fa
67 changed files with 10698 additions and 640 deletions
|
|
@ -57,8 +57,11 @@ 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 not in (".gitignore", "Dockerfile") and name not in (
|
||||
"LICENSE", "Cargo.lock", "UPSTREAM.json", ".gitignore"):
|
||||
if path.suffix not in allowed and path.name not in (
|
||||
".gitignore", "Dockerfile") and name not in (
|
||||
"LICENSE", "Cargo.lock", "UPSTREAM.json", ".gitignore",
|
||||
"crates/argand-site-registry/examples/observer.env",
|
||||
"crates/argand-site-registry/tests/fixtures/v03-contract.json"):
|
||||
raise ValueError(f"file is outside the source release allowlist: {name}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue