Documentation
¶
Overview ¶
Package ghtest has GitHub settings for cassette tests: the scrubber and the token to record with.
Index ¶
Constants ¶
const DummyToken = "test-token"
DummyToken stands in for a token when replaying; the matcher ignores Authorization headers.
Variables ¶
This section is empty.
Functions ¶
func Scrubber ¶
Scrubber removes GitHub credentials and token metadata from recorded interactions. extra lists more secret values, such as a token passed through another variable.
func Token ¶
func Token() string
Token returns the token from GH_TOKEN or GITHUB_TOKEN while recording, and DummyToken otherwise.
Types ¶
This section is empty.