githubBearerToken top-level property

ConfigVariable<String?> githubBearerToken
final

The GitHub token to use for bearer authorization.

Do not check this in directly. This should only come from secure sources.

This is an alternate way of authenticating a GitHub account, rather than using githubUser and githubPassword. It's only documented to work with GitHub Actions' GITHUB_TOKEN secret, so if you aren't specifically using that it's better to use githubUser and githubPassword.

Note that this can only be used for GitHub actions directly, not for Homebrew actions.

By default, this comes from the GITHUB_BEARER_TOKEN environment variable. If it's set, it's used in preference to githubUser and githubPassword. To override this behavior, set its value to null.

Implementation

final githubBearerToken = InternalConfigVariable.value<String?>(
    Platform.environment["GITHUB_BEARER_TOKEN"]);