Skip to content

Commit

Permalink
fix(github): token fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Jul 2, 2018
1 parent 4fc2c23 commit 7ddb750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/executors/ExecutorDockerServerless.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class ExecutorDockerServerless extends ExecutorDocker {
)
);

// add token into clone url.
// add token into clone url
if (process.env.GTM_CRYPT_GITHUB_TOKEN) {
let decyptedToken = await KmsUtils.decrypt(process.env.GTM_CRYPT_GITHUB_TOKEN);
task.options.env.GIT_CLONE = task.options.env.GIT_CLONE.replace('https://', `https://${decyptedToken}@`);
Expand Down
2 changes: 1 addition & 1 deletion src/executors/ExecutorDockerSonar.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class ExecutorDockerSonar extends ExecutorDocker {
)
);

// add token into clone url.
// add token into clone url
if (process.env.GTM_CRYPT_GITHUB_TOKEN) {
let decyptedToken = await KmsUtils.decrypt(process.env.GTM_CRYPT_GITHUB_TOKEN);
task.options.env.GIT_CLONE = task.options.env.GIT_CLONE.replace('https://', `https://${decyptedToken}@`);
Expand Down

0 comments on commit 7ddb750

Please sign in to comment.