1.1.1 • Published 3 years ago

action-uses-cli v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

action-uses-cli

Test CodeQL styled with prettier

CLI to grab GitHub action uses strings

Install

$ npm i -g action-uses-cli

Usage

$ action-uses-cli [--options]

Required options (one of)

  • --enterprise, -e GitHub Enterprise Cloud account slug (e.g. enterprise)
  • --owner, -o GitHub organization/user login (e.g. owner) If --owner is a user, results for the authenticated user (--token) will be returned
  • --repository, -r GitHub repository name with owner (e.g. owner/repo)

Additional options

  • --exclude Exclude actions created by GitHub, i.e. actions from https://github.com/actions and https://github.com/github organizations'
  • --csv Path to CSV for the output (e.g. /path/to/action-uses.csv)
  • --token, -t GitHub Personal Access Token (PAT) (default GITHUB_TOKEN)
  • --help, -h Print action-uses-cli help
  • --version, -v Print action-uses-cli version

Examples

# Output GitHub Actions `uses` for all repositories under a GitHub Enterprise Cloud account to stdout
$ action-uses-cli -e my-enterprise

# Output GitHub Actions `uses` for all organization repositories to stdout
$ action-uses-cli -o my-org

# Output GitHub Actions `uses` for all user repositories to stdout
$ action-uses-cli -o stoe

# Output GitHub Actions `uses` for the stoe/action-uses-cli repository to stdout
$ action-uses-cli -o stoe/action-uses-cli

# Output GitHub Actions `uses` for all organization repositories to /path/to/action-uses.csv
$ action-uses-cli -o my-org --csv /path/to/action-uses.csv

License