VSTS prefers to pass secrets as command line params (#24041)

This commit is contained in:
Wesley Wigham 2018-05-10 15:37:44 -07:00 committed by GitHub
parent fd17f77cc9
commit e296301c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -40,6 +40,7 @@ scripts/buildProtocol.js
scripts/ior.js
scripts/authors.js
scripts/configurePrerelease.js
scripts/open-user-pr.js
scripts/processDiagnosticMessages.d.ts
scripts/processDiagnosticMessages.js
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js

View File

@ -33,7 +33,7 @@ runSequence([
const gh = new Octokit();
gh.authenticate({
type: "token",
token: process.env.GH_TOKEN
token: process.argv[2]
});
gh.pullRequests.create({
owner: process.env.TARGET_FORK,