Get the current GitHub personal access token provided by the GITHUB_TOKEN
environment variable or the value of the github.token
git configuration
option.
import { githubToken } from '@zendeskgarden/scripts';
(async () => {
const token = await githubToken();
console.log(token && token.replace(/./gu, '*'));
})();
garden github-token [--no-mask]