Skip to content

Conversation

@josephperrott
Copy link
Member

Set up retrieving github tokens for ng-dev commands using the gh cli auth rather than from the environment variable. Additionally, we set a warning indicating environment variable auth tokens are going away.

…of environment

Set up retrieving github tokens for ng-dev commands using the gh cli auth rather than from the environment
variable.  Additionally, we set a warning indicating environment variable auth tokens are going away.
try {
/** Silent mode is used to prevent the token lookup from being printed into the logs. */
const mode = 'silent';
const ghCliToken = ChildProcess.spawnSync('gh', ['auth', 'token'], {mode}).stdout.trim();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to be careful with logging? IIIRC the helper logs output raw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants