CLI to grab GitHub action
uses
strings
$ npm i -g action-uses-cli
$ action-uses-cli [--options]
-
--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
)
-
--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) (defaultGITHUB_TOKEN
) -
--help
,-h
Print action-uses-cli help -
--version
,-v
Print action-uses-cli version
# 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