Skip to content

Commit 5cf84c3

Browse files
committed
ci: trim the githubtoken
1 parent 00cca4b commit 5cf84c3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/snapshots.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ export default function(opts: SnapshotsOptions, logger: logging.Logger) {
6565
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'angular-devkit-publish-'));
6666
const message = execSync(`git log --format="%h %s" -n1`).toString().trim();
6767

68-
const githubToken = opts.githubToken ||
69-
(opts.githubTokenFile && fs.readFileSync(opts.githubTokenFile, 'utf-8'));
68+
const githubToken = (
69+
opts.githubToken
70+
|| (opts.githubTokenFile && fs.readFileSync(opts.githubTokenFile, 'utf-8'))
71+
|| ''
72+
).trim();
73+
7074
logger.info('Setting up global git name.');
7175
if (githubToken) {
7276
_exec('git', ['config', '--global', 'user.email', '[email protected]'], {}, logger);

0 commit comments

Comments
 (0)