Skip to content

Instantly share code, notes, and snippets.

@psiinon
Created August 20, 2025 12:46
Show Gist options
  • Select an option

  • Save psiinon/63329bdd965257c4d842930c3cf00b90 to your computer and use it in GitHub Desktop.

Select an option

Save psiinon/63329bdd965257c4d842930c3cf00b90 to your computer and use it in GitHub Desktop.
Set up ZAP repos
import os
import subprocess
repos = [
"https://github.com/zaproxy/zap-extensions",
"https://github.com/zaproxy/browser-extension",
"https://github.com/zaproxy/community-scripts",
"https://github.com/zaproxy/wavsep",
"https://github.com/zaproxy/zap-admin",
"https://github.com/zaproxy/zap-api-python",
"https://github.com/zaproxy/zap-core-help",
"https://github.com/zaproxy/zap-hud",
"https://github.com/zaproxy/zaproxy-website",
"https://github.com/zaproxy/zest",
"https://github.com/zapbot/zap-mgmt-scripts",
]
def run(cmd):
print(cmd)
subprocess.run(cmd.split(" "))
for repo in repos:
parts = repo.split("/")
run("git clone " + repo + ".git")
os.chdir(parts[4])
run("git remote add upstream " + repo + ".git")
parts[3] = "psiinon"
r2 = "/".join(parts)
run("git remote set-url origin " + r2)
os.chdir("..")
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment