Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 424 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 424 Bytes

garden github-token

Get the current GitHub personal access token provided by the GITHUB_TOKEN environment variable or the value of the github.token git configuration option.

Usage

import { githubToken } from '@zendeskgarden/scripts';

(async () => {
  const token = await githubToken();

  console.log(token && token.replace(/./gu, '*'));
})();

Command

garden github-token [--no-mask]