1.5 KiB
Github Authentication in Prowler
Prowler supports multiple methods to authenticate with GitHub. These include:
- Personal Access Token (PAT)
- OAuth App Token
- GitHub App Credentials
This flexibility enables scanning and analysis of GitHub accounts, including repositories, organizations, and applications, using the method that best suits the use case.
Supported Login Methods
Here are the available login methods and their respective flags:
Personal Access Token (PAT)
Use this method by providing your personal access token directly.
prowler github --personal-access-token pat
OAuth App Token
Authenticate using an OAuth app token.
prowler github --oauth-app-token oauth_token
GitHub App Credentials
Use GitHub App credentials by specifying the App ID and the private key path.
prowler github --github-app-id app_id --github-app-key-path app_key_path
Automatic Login Method Detection
If no login method is explicitly provided, Prowler will automatically attempt to authenticate using environment variables in the following order of precedence:
GITHUB_PERSONAL_ACCESS_TOKENGITHUB_OAUTH_APP_TOKENGITHUB_APP_IDandGITHUB_APP_KEY(where the key is the content of the private key file)
???+ note Ensure the corresponding environment variables are set up before running Prowler for automatic detection when not specifying the login method.