fork and add irsa

This commit is contained in:
Dan Molik
2022-10-13 09:30:09 -04:00
parent 3af6334fd9
commit 30a63e7ff7
4 changed files with 13 additions and 11 deletions

View File

@@ -82,12 +82,14 @@ export function getInputS3ClientConfig(): S3ClientConfig | undefined {
if (!s3BucketName) {
return undefined
}
const s3config = {
const credentials = core.getInput(Inputs.AWSAccessKeyId) ? {
credentials: {
accessKeyId: core.getInput(Inputs.AWSAccessKeyId),
secretAccessKey: core.getInput(Inputs.AWSSecretAccessKey)
},
}
} : null
const s3config = {
...credentials,
region: core.getInput(Inputs.AWSRegion),
endpoint: core.getInput(Inputs.AWSEndpoint),
bucketEndpoint: core.getBooleanInput(Inputs.AWSS3BucketEndpoint),