How nicklegan/github-enterprise-user-totals-report-action works
Project type and purpose
• This is an open-source GitHub Action (“GitHub Enterprise User Totals Report Action”).
• Purpose: When run (on schedule or manually), it queries a GitHub Enterprise Cloud instance for user counts (owners, members, outside collaborators), generates a CSV (and optionally JSON) report, and commits it back to the repository.
File structure
• Top-level files:
• action.yml – Action metadata (inputs, outputs, branding, entrypoint)
• index.js – entrypoint for the action (likely a thin wrapper).
• dist/ – compiled JavaScript, bundled for distribution
• package.json & package-lock.json – dependencies (octokit, @actions/core, etc.)
• README.md – usage and inputs
• .github/ – CI and configuration (dependabot, security, CODEOWNERS)
• No frontend/backend split—this is a single, CLI-style component meant to run in the GitHub Actions runtime environment.
README for additional insights
• Lists inputs (token, sorting, JSON flag) driven by action.yml
• Describes workflow integration: “uses: nicklegan/github-enterprise-user-totals-report-action@v1.0.0”
• Explains CSV/JSON output format and where it will be saved (reports/ folder)