Skip to content

GitHub API

GitHub API

Status: ✅ Active User: verioussmith Organizations: 7 CLI: gh (GitHub CLI installed) Token Location: /root/.credentials/github.env

Organizations Accessible

OrganizationPurpose
PhiloveracityMain business, web development
Startempire-WireMedia/news platform
ASAP-DigestNewsletter/digest service
VeriDX-AIAI/ML projects
VoiceSpot-LinkVoice/audio platform
navisaiAI navigation
Inland-Empire-WordPress-MeetupCommunity/meetup

Configuration

Terminal window
# Location
/root/.credentials/github.env
# Contents (keys redacted)
GITHUB_TOKEN=ghp_***
GITHUB_USER=verioussmith

CLI Usage (Preferred)

Terminal window
# Auth status
gh auth status
# List repos in org
gh repo list Philoveracity
# Create repo
gh repo create Philoveracity/new-repo --private
# Clone repo
gh repo clone Philoveracity/repo-name
# Create PR
gh pr create --title "Feature" --body "Description"
# View issues
gh issue list --repo Philoveracity/repo-name

API Usage (Alternative)

Terminal window
# Load credentials
source /root/.credentials/github.env
# List organizations
curl -s -H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/user/orgs | jq '.[].login'
# List repos in org
curl -s -H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/orgs/Philoveracity/repos | jq '.[].name'
# Create repo
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/orgs/Philoveracity/repos \
-d '{"name":"new-repo","private":true}'

MAP Integration

FeatureAPI Endpoint
Create product repoPOST /orgs/{org}/repos
Push initial codeGit CLI with token auth
Setup ActionsPUT /repos/{owner}/{repo}/contents/.github/workflows/
Create releasesPOST /repos/{owner}/{repo}/releases

Security Notes

  • Token has repo scope (full repository access)
  • Stored with 600 permissions (root only)
  • Rotate periodically via GitHub Settings → Developer settings → Personal access tokens

Configured: 2026-01-05