Package: audit-repo-clone-test
Audit Repository ClonerThis repository contains a Python package to clone a repo and automatically prepare it forCyfrinaudit report generation.What it doesIt will take the following steps:Take thesourcerepository you want to set up for auditTake thetargetrepository name you want to use for the private --repoAdd anissue_templateto the repo, so issues can be formatted as audit findings, like:**Description:**
**Impact:**
**Proof of Concept:**
**Recommended Mitigation:**
**[Project]:** 
**Cyfrin:**Update labels to label issues based on severity and statusCreate an audit tag at the given commit hash (full SHA)Create branches for each of the auditors participatingCreate a branch for the final reportAdd thereport-generator-templateto the repo to make it easier to compile the report, and add a button in GitHub actions to re-generate the report on-demandAttempt to set up a GitHub project boardNote: Changes toreport-generator-templatecan be pulled into the generated repo by running:gitsubtreepull--prefixcyfrin-report/report-generator-templatehttps://github.com/Cyfrin/report-generator-templatemain--squashGetting StartedRequirementsgitYou'll know you did it right if you can rungit --versionand you see a response likegit version x.x.xPythonYou'll know you've installed python right if you can run:python --versionorpython3 --versionand get an ouput like:Python x.x.xpipYou'll know you did it right if you can runpip --versionorpip3 --versionand get an output likepip x.x from /some/path/here (python x.x)InstallationTo install from source:gitclonehttps://github.com/Cyfrin/audit-repo-clonercdaudit-repo-cloner
python3-mvenvvenvsourcevenv/bin/activate
pipinstall-rrequirements.txtTo install from pipx:pipxinstallaudit-repo-clonerAnd if installing from source with pipx package already installed, install in editable mode:pipinstall-e.You'll know you've installed it correctly if you can run:audit_repo_cloner --versionAnd get an output like:audit_repo_cloner, version 0.2.2Getting a GitHub tokenTo use this, you'll need agithub personal access token. Please view the docs to set one up.You can then set it as an environment variable or input it via the CLI:exportACCESS_TOKEN=xxxxxxNote: this access token is only used to create the repo initially. To allow the GitHub Action to run the report generator (fetching issues) in CI, be sure to set appropriate permissions for the globalGITHUB_TOKENsecret.UsageNote: $ denotes a command to run in the terminalHelpaudit_repo_cloner --helpAs a single commandFrom source:python./create_audit_repo.py`Otherwise (pipx):audit_repo_cloner --source-url https://github.com/PatrickAlphaC/hardhat-smartcontract-lottery-fcc --target-repo-name "" --commit-hash 5e4872358cd2bda1936c29f460ece2308af4def6 --auditors "tricky-p blue-frog-man giiioooooooo" --organization cyfrin --github-token <YOUR_ACCESS_TOKEN>$ audit_repo_cloner 
"Hello! This script will clone the source repository and prepare it for a Cyfrin audit. Please enter the following details:

1) Source repo url:Enter:https://github.com/Cyfrin/foundry-full-course-f232) Target repo name (leave blank to use source repo name):Enter:""3) Audit commit hash:Enter:25d62b685857f5c1906675a3876d7d7773a8b3bd4) Enter the names of the auditors (separated by spaces):Enter:"tricky-p blue-frog-man giiioooooooo"5) Enter the name of the organization to create the audit repository in:Enter:<YOUR_ORG_NAME>And you'll get a loooong output, but, hopefully, you'll have a repo ready for audit!