in code-build.js [188:217]
function inputs2Parameters(inputs) {
const {
projectName,
owner,
repo,
sourceVersion,
buildspecOverride,
envPassthrough = [],
} = inputs;
const sourceTypeOverride = "GITHUB";
const sourceLocationOverride = `https://github.com/${owner}/${repo}.git`;
const environmentVariablesOverride = Object.entries(process.env)
.filter(
([key]) => key.startsWith("GITHUB_") || envPassthrough.includes(key)
)
.map(([name, value]) => ({ name, value, type: "PLAINTEXT" }));
// The idempotencyToken is intentionally not set.
// This way the GitHub events can manage the builds.
return {
projectName,
sourceVersion,
sourceTypeOverride,
sourceLocationOverride,
buildspecOverride,
environmentVariablesOverride,
};
}