3.7 KiB
3.7 KiB
Operations Guide
Common operational paths for the team.
Use this file as the routing guide. For the exact support boundary, cross-check docs/supported-scripts.md.
1. Remove A Collaborator Interactively
Use:
./remove_user_interactive.sh
Use this when:
- you need repository pattern matching
- you want per-repository confirmation
- you want the safest default path for access removal
Requirements:
curljq- GitHub token with the necessary repo and org permissions
2. Remove A Collaborator In A More Guided Flow
Use:
./remove_user_guided.sh
Use this when:
- you want a more opinionated step-by-step flow
- you are onboarding someone to the repo tools
3. Remove A Collaborator In A Scripted Way
Use:
./remove_user_from_repos.sh
Use this when:
- you already know the target root, user, and repo pattern
- you want a repeatable command invocation
Read first:
README_remove_user_script.mddocs/supported-scripts.md
4. Run Common GitHub Admin Commands
Use:
./bytelyst-cli.sh help
Typical commands:
./bytelyst-cli.sh list-public-repos --user <username>
./bytelyst-cli.sh list-private-repos --org <orgname>
./bytelyst-cli.sh check-collaborators --input github_acc_input.json
Use this when:
- you need the main shared CLI entry point
- the task fits the commands already exposed there
5. Scan Multi-Repo Git Status
Use:
./git-work-safety-tools/git_repos_status.sh
./git-work-safety-tools/multi_repo_status.sh
Use this when:
- you need visibility across many local repositories
- you want safer batch git operations
6. Safely Push Across Multiple Repositories
Use:
./git-work-safety-tools/multi_repo_safe_push.sh
Use this when:
- you are coordinating many repos
- you want a safer batch push helper instead of ad hoc shell loops
7. Scan GitHub Access Across Accounts
Use:
cp accounts.example.json accounts.json
./github_access_scripts/list_user_repos.sh <github_user>
./github_access_scripts/check_repo_access.sh <github_user> <owner/repo>
Use this when:
- you need access verification
- you need a focused check outside the main CLI
8. Generate Repo Scan Artifacts Locally
Use:
./github_repo_scanners/create_user_repo_lists.sh
./github_repo_scanners/run_contributor_json_creation.sh accounts.json
Generated outputs go to:
github_repo_scanners/user_repos/github_repo_scanners/contributor_repos/
Do not commit those outputs unless they are intentionally curated fixtures.
9. Harden An Ubuntu VM
Use:
sudo bash scripts/ubuntu-vm-security-update.sh --help
sudo bash scripts/ubuntu-vm-security-update.sh --dry-run
Use this when:
- you are preparing or refreshing an Ubuntu VM
- you want unattended upgrades, UFW, and fail2ban configured
Recommended order:
- Read
scripts/README.md - Run
--help - Run
--dry-run - Run the real command with explicit reboot behavior
After a reboot triggered by the script, verify the resulting host state with:
test -f /var/run/reboot-required && echo "reboot still required" || echo "reboot clear"
sudo systemctl status unattended-upgrades fail2ban
sudo ufw status verbose
sudo tail -n 50 /var/log/vm-security-update.log
apt list --upgradable
If packages are still pending or the services are unhealthy, rerun:
sudo bash scripts/ubuntu-vm-security-update.sh
Team Guidance
- Prefer the supported entry points in
docs/tooling-status.md. - Prefer
docs/operations.mdanddocs/supported-scripts.mdover scanning the repo root manually. - Prefer templates such as
accounts.example.jsonand.env.exampleover ad hoc local files. - Do not commit local credentials, generated transcripts, or repo-scan outputs.