3.5.1 • Published 19 hours ago
@stoe/action-reporting-cli v3.5.1
action-reporting-cli
CLI to report on GitHub Actions
Usage example
$ npx @stoe/action-reporting-cli [--options]
Required options one of
--enterprise
,-e
GitHub Enterprise (Cloud|Server) 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
--token
,-t
GitHub Personal Access Token (PAT) (defaultGITHUB_TOKEN
).--hostname
GitHub Enterprise Server hostname (defaultapi.github.com
). For example:github.example.com
Report options
--all
Report all below.--listeners
Reporton
listeners used.--permissions
Reportpermissions
values forGITHUB_TOKEN
.--runs-on
Reportruns-on
values.--secrets
Reportsecrets
used.--uses
Reportuses
values.--exclude
Exclude GitHub Actions created by GitHub. From https://github.com/actions and https://github.com/github organizations. Only applies to--uses
.--unique
List unique GitHub Actions. Possible values aretrue
,false
andboth
. Only applies to--uses
. Will create an additional*-unique.{csv,json,md}
report file.
--vars
Reportvars
used.
Report output options
--csv
Path to save CSV output (e.g. /path/to/reports/report.csv).--json
Path to save JSON output (e.g. /path/to/reports/report.json).--md
Path to save markdown output (e.g. /path/to/reports/report.md).
Helper options
--help
,-h
Print action-reporting-cli help.--version
,-v
Print action-reporting-cli version.
Examples
# Report on everything in the `my-enterprise` GitHub Enterprise Cloud account.
# Save CSV, JSON and markdown reports to `./reports/actions.{csv,json,md}`.
$ npx @stoe/action-reporting-cli \
--token ghp_000000000000000000000000000000000000 \
--enterprise my-enterprise \
--all \
--csv ./reports/actions.csv \
--json ./reports/actions.json \
--md ./reports/actions.md
# Report on everything in the `my-org` GitHub organization.
# Save JSON report to `./reports/actions.json`.
$ npx @stoe/action-reporting-cli \
--token ghp_000000000000000000000000000000000000 \
--owner my-org \
--permissions \
--runs-on \
--secrets \
--uses \
--vars \
--json ./reports/actions.json
# Report on unique GitHub Actions in the `my-org/myrepo` GitHub repository.
# Exclude GitHub Actions created by GitHub.
# Save CSV report to `./reports/actions.csv`.
$ npx @stoe/action-reporting-cli \
--token ghp_000000000000000000000000000000000000 \
--repository my-org/myrepo \
--uses \
--exclude \
--unique both \
--csv ./reports/actions.csv
# Report on everything in the `my-org` GitHub organization on `github.example.com` GitHub Enterprise Server.
# Save JSON report to `./reports/actions.json`.
$ npx @stoe/action-reporting-cli \
--hostname github.example.com \
--token ghp_000000000000000000000000000000000000 \
--owner my-org \
--all \
--json ./reports/actions.json
License
3.5.1
19 hours ago
3.5.0
14 days ago
3.4.0
10 months ago
3.3.4
10 months ago
3.4.2
8 months ago
3.4.1
9 months ago
3.3.1
11 months ago
3.3.0
11 months ago
3.3.3
11 months ago
3.3.2
11 months ago
3.2.0
12 months ago
3.1.0
12 months ago
3.0.0
12 months ago
2.1.2
2 years ago
2.2.0
2 years ago
2.1.1
2 years ago
2.1.3
2 years ago
2.1.0
2 years ago
2.0.0-beta.1
2 years ago
2.0.0-beta.0
2 years ago
2.0.0
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago