Skip to content
Pasknel Ribeiro edited this page Nov 13, 2023 · 3 revisions

github

The epyon github command can be used to interact with Github.

$ ./epyon github -h

Options for Github

Usage:
  epyon github [flags]
  epyon github [command]

Available Commands:
  download-org-projects Download Organization Projects
  download-projects     Download Projects
  get-artifacts         Get artifacts from workflows runs
  get-logs              Get logs from workflows runs
  list-org-members      List Organization Members
  list-org-repos        List Organization Repositories
  list-org-secrets      List Organization Secrets (requires admin privs)
  list-org-vars         List Organization Variables (requires admin privs)
  list-org-workflows    List Organization Workflows
  list-orgs             List organizations the user is a member of
  list-repo-secrets     List Repositories Secrets
  list-repos            List Repositories
  list-user-teams       List User Teams
  list-workflows        List Workflows
  whoami                Get information about the current user

Flags:
  -h, --help           help for github
  -t, --token string   Access Token

Global Flags:
  -P, --proxy-pass string     Proxy Password
  -X, --proxy-server string   Proxy Server
  -U, --proxy-user string     Proxy User
  -S, --socks-server string   SOCKS5 Server (ip:port)
  -K, --ssl-insecure          SSL Insecure (default true)
  -V, --verbose               Verbose

Use "epyon github [command] --help" for more information about a command.

Authentication

Authenticating with token

Github API token can be specified with the -t flag.

Get info about the current user

$ epyon github whoami -t TOKEN

View list of teams the user belong to

$ epyon github list-user-teams -t TOKEN

View list of organizations the user is a member of

$ epyon github list-orgs -t TOKEN

Listing user repositories

$ epyon github list-repos -t TOKEN

View list of repositories from a specific organization

$ epyon github list-org-repos -t TOKEN -o ORGANIZATION

View list of members from a specific organization

$ epyon github list-org-members -t TOKEN -o ORGANIZATION

Download user repositories

$ epyon github download-projects -t TOKEN

Download repositories from a specific organization

$ epyon github download-org-projects -t TOKEN -o ORGANIZATION

Download logs (outputs) from workflow runs

$ epyon github get-logs -t TOKEN

Download artifacts from workflow runs

$ epyon github get-artifacts -t TOKEN

View list of workflows from a specific organization

$ epyon github list-org-workflows -t TOKEN -o ORGANIZATION

View list of secrets from repositories

This command requires owner/admin privileges

$ epyon github list-repo-secrets -t TOKEN

View list of organization variables

This command requires admin privileges

$ epyon github list-org-vars -t TOKEN -o ORGANIZATION

View list of organization secrets

This command requires admin privileges

$ epyon github list-org-secrets -t TOKEN -o ORGANIZATION