@@ -57,6 +57,7 @@ async function build(sdk, params, config) {
5757 branch : params . branch ,
5858 sourceVersion : params . sourceVersion ,
5959 reproducible : params . reproducible ,
60+ gpSshPrivateKeyB64 : params . gpSshPrivateKeyB64 ,
6061 imageTag,
6162 } ) ,
6263 } )
@@ -100,15 +101,15 @@ async function waitForBuildEndTime(
100101 } )
101102 ) ,
102103 ! hideCloudWatchLogs &&
103- logGroupName &&
104- cloudWatchLogs . send (
105- new GetLogEventsCommand ( {
106- logGroupName,
107- logStreamName,
108- startFromHead,
109- nextToken,
110- } )
111- ) ,
104+ logGroupName &&
105+ cloudWatchLogs . send (
106+ new GetLogEventsCommand ( {
107+ logGroupName,
108+ logStreamName,
109+ startFromHead,
110+ nextToken,
111+ } )
112+ ) ,
112113 ] ) . catch ( ( err ) => {
113114 errObject = err ;
114115 /* Returning [] here so that the assignment above
@@ -241,6 +242,10 @@ function githubInputs() {
241242 const disableGithubEnvVars =
242243 core . getInput ( "disable-github-env-vars" , { required : false } ) === "true" ;
243244
245+ const gpSshPrivateKeyB64 = core . getInput ( "gp-ssh-private-key-b64" , {
246+ required : false ,
247+ } ) ;
248+
244249 return {
245250 owner,
246251 repo,
@@ -251,11 +256,19 @@ function githubInputs() {
251256 updateBackOff,
252257 hideCloudWatchLogs,
253258 disableGithubEnvVars,
259+ gpSshPrivateKeyB64,
254260 } ;
255261}
256262
257263function inputs2Parameters ( inputs ) {
258- const { owner, repo, branch, sourceVersion, reproducible } = inputs ;
264+ const {
265+ owner,
266+ repo,
267+ branch,
268+ sourceVersion,
269+ reproducible,
270+ gpSshPrivateKeyB64,
271+ } = inputs ;
259272
260273 // The idempotencyToken is intentionally not set.
261274 // This way the GitHub events can manage the builds.
@@ -265,6 +278,7 @@ function inputs2Parameters(inputs) {
265278 branch,
266279 sourceVersion,
267280 reproducible,
281+ gpSshPrivateKeyB64,
268282 } ;
269283}
270284
0 commit comments