mirror of
https://github.com/zizmorcore/zizmor.git
synced 2025-12-23 08:47:33 +00:00
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Test site build (push) Has been cancelled
zizmor wheel builds for PyPI 🐍 / Build Linux wheels (manylinux) (push) Has been cancelled
zizmor wheel builds for PyPI 🐍 / Build Linux wheels (musllinux) (push) Has been cancelled
GitHub Actions Security Analysis with zizmor 🌈 / Run zizmor 🌈 (push) Has been cancelled
zizmor wheel builds for PyPI 🐍 / Build Windows wheels (push) Has been cancelled
Deploy zizmor documentation site 🌐 / Deploy zizmor documentation to GitHub Pages 🌐 (push) Has been cancelled
zizmor wheel builds for PyPI 🐍 / Build macOS wheels (push) Has been cancelled
zizmor wheel builds for PyPI 🐍 / Build source distribution (push) Has been cancelled
CI / All tests pass (push) Has been cancelled
zizmor wheel builds for PyPI 🐍 / Release (push) Has been cancelled
32 lines
735 B
Python
Executable file
32 lines
735 B
Python
Executable file
#!/usr/bin/env -S uv run --script
|
|
# /// script
|
|
# requires-python = ">=3.14"
|
|
# dependencies = []
|
|
# ///
|
|
from pathlib import Path
|
|
|
|
_HERE = Path(__file__).parent
|
|
_ARCHIVED_ACTION_REPOS = _HERE / "archived-action-repos.txt"
|
|
|
|
assert _ARCHIVED_ACTION_REPOS.is_file(), f"Missing {_ARCHIVED_ACTION_REPOS}"
|
|
|
|
_OUT = _HERE.parent / "crates" / "zizmor" / "data" / "archived-repos.txt"
|
|
|
|
|
|
def main() -> None:
|
|
lines = []
|
|
for line in _ARCHIVED_ACTION_REPOS.read_text().splitlines():
|
|
line = line.strip()
|
|
if not line or line.startswith("#"):
|
|
continue
|
|
|
|
lines.append(line.lower())
|
|
|
|
lines.sort()
|
|
|
|
with _OUT.open("w") as io:
|
|
print("\n".join(lines), file=io)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|