Skip to content

Commit

Permalink
fix(sonar): pass in aws creds if not iam enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Apr 17, 2018
1 parent dc01d0e commit eeecf1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/executors/ExecutorDockerSonar.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ export class ExecutorDockerSonar extends ExecutorDocker {
}
};

if (!process.env.IAM_ENABLED) {
options.env['GTM_AWS_ACCESS_KEY_ID'] = process.env.GTM_AGENT_AWS_ACCESS_KEY_ID;
options.env['GTM_AWS_SECRET_ACCESS_KEY'] = process.env.GTM_AGENT_AWS_SECRET_ACCESS_KEY;
options.env['GTM_AWS_REGION'] = process.env.GTM_AWS_REGION;
}

// options defined above can be overidden by options in .githubTaskManager.json
task.options = _.merge(options, task.options);

Expand Down

0 comments on commit eeecf1a

Please sign in to comment.