Skip to content

Latest commit

Β 

History

History
99 lines (77 loc) Β· 2.49 KB

File metadata and controls

99 lines (77 loc) Β· 2.49 KB

πŸš€ Getting Started with GitHub Utilities

This guide will help you set up and start using the GitHub Utilities toolkit.

πŸ“‹ Prerequisites

  • Python 3.7+ installed on your system
  • Git configured with your GitHub account
  • GitHub account with appropriate repository access
  • GitHub Personal Access Token (we'll help you create one)

πŸ› οΈ Installation

1. Clone the Repository

git clone https://github.com/CloudSecOpsAI/github-utilities.git
cd github-utilities

2. Install Dependencies

pip install -r requirements.txt

3. Set Up Environment

cp issue-creator/env.example .env

πŸ”‘ Authentication Setup

Create GitHub Personal Access Token

  1. Go to GitHub Settings β†’ Tokens
  2. Click "Generate new token (classic)"
  3. Give it a descriptive name (e.g., "GitHub Utilities")
  4. Select these scopes:
    • βœ… repo (full control of private repositories)
    • βœ… read:org (read organization data)
    • βœ… workflow (update GitHub Actions workflows)
  5. Click "Generate token"
  6. Copy the token immediately (you won't see it again)

Configure Environment

Edit your .env file:

GITHUB_TOKEN=your_token_here

πŸ§ͺ Test Your Setup

Test Issue Creator

cd issue-creator/
python github-issue-creator.py --help

Test Issue Analyzer

cd issue-analyzer/
python github-issues-analyzer.py --help

🎯 Your First Automation

Create Your First Issues

cd issue-creator/
python github-issue-creator.py \
  --config config-examples/basic-config.json \
  --file examples/sample-items.txt \
  --dry-run

Generate Your First Report

cd issue-analyzer/
python github-issues-analyzer.py \
  --owner microsoft \
  --repo vscode \
  --days 7

πŸ“š Next Steps

πŸ’‘ Pro Tips

  1. Start with dry-run mode to test configurations safely
  2. Use descriptive commit messages when contributing
  3. Keep your token secure - never commit it to git
  4. Test with public repositories first to validate setup
  5. Read tool-specific documentation for advanced features

Ready to automate your GitHub workflows! πŸš€