2.5.1 • Published 4 years ago
@stoe/action-uses-cli v2.5.1
action-uses-cli
CLI to grab GitHub action
usesstrings
Usage
$ npx @stoe/action-uses-cli [--options]Required options (one of)
--enterprise,-eGitHub Enterprise Cloud account slug (e.g.enterprise)--owner,-oGitHub organization/user login (e.g.owner) If --owner is a user, results for the authenticated user (--token) will be returned--repository,-rGitHub repository name with owner (e.g.owner/repo)
Additional options
--excludeExclude actions created by GitHub, i.e. actions from https://github.com/actions and https://github.com/github organizations--uniqueList unique GitHub Actions only--csvPath to CSV file for the output (e.g./path/to/action-uses.csv)--mdPath to markdown file for the output (e.g./path/to/action-uses.md)--token,-tGitHub Personal Access Token (PAT) (defaultGITHUB_TOKEN)--help,-hPrint action-uses-cli help--version,-vPrint 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 -r 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
# Output GitHub Actions `uses` for all organization repositories to /path/to/action-uses.md
$ action-uses-cli -o my-org --md /path/to/action-uses.md