Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ inputs:
disable-github-env-vars:
description: 'Set to `true` if you want do disable github environment variables in codebuild'
required: false
gp-ssh-private-key:
description: 'Deploy key for private repo access - used for fetching private dependencies'
required: false
outputs:
aws-build-id:
description: 'The AWS CodeBuild Build ID for this build.'
Expand Down
16 changes: 15 additions & 1 deletion code-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async function build(sdk, params, config) {
branch: params.branch,
sourceVersion: params.sourceVersion,
reproducible: params.reproducible,
gpSshPrivateKey: params.gpSshPrivateKey,
imageTag,
}),
})
Expand Down Expand Up @@ -241,6 +242,10 @@ function githubInputs() {
const disableGithubEnvVars =
core.getInput("disable-github-env-vars", { required: false }) === "true";

const gpSshPrivateKey = core.getInput("gp-ssh-private-key", {
required: false,
});

return {
owner,
repo,
Expand All @@ -251,11 +256,19 @@ function githubInputs() {
updateBackOff,
hideCloudWatchLogs,
disableGithubEnvVars,
gpSshPrivateKey,
};
}

function inputs2Parameters(inputs) {
const { owner, repo, branch, sourceVersion, reproducible } = inputs;
const {
owner,
repo,
branch,
sourceVersion,
reproducible,
gpSshPrivateKey,
} = inputs;

// The idempotencyToken is intentionally not set.
// This way the GitHub events can manage the builds.
Expand All @@ -265,6 +278,7 @@ function inputs2Parameters(inputs) {
branch,
sourceVersion,
reproducible,
gpSshPrivateKey,
};
}

Expand Down
Loading