File tree Expand file tree Collapse file tree 6 files changed +29
-17
lines changed Expand file tree Collapse file tree 6 files changed +29
-17
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ inputs:
31
31
required : true
32
32
aws-access-key-id :
33
33
description : ' An AWS access key id to access the bucket'
34
- required : true
34
+ required : false
35
35
aws-secret-access-key :
36
36
description : ' An AWS secret access key to access the bucket'
37
- required : true
37
+ required : false
38
38
aws-region :
39
39
description : ' An AWS region where the bucket is located'
40
40
required : false
Original file line number Diff line number Diff line change @@ -15852,10 +15852,12 @@ function getInputS3ClientConfig() {
15852
15852
}
15853
15853
const s3config = {
15854
15854
credentials: {
15855
- accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId),
15856
- secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey)
15855
+ accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId) ||
15856
+ process.env["AWS_ACCESS_KEY_ID"],
15857
+ secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey) ||
15858
+ process.env["AWS_SECRET_ACCESS_KEY"]
15857
15859
},
15858
- region: core.getInput(constants_1.Inputs.AWSRegion),
15860
+ region: core.getInput(constants_1.Inputs.AWSRegion) || process.env["AWS_REGION"] ,
15859
15861
endpoint: core.getInput(constants_1.Inputs.AWSEndpoint),
15860
15862
bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint),
15861
15863
forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle)
Original file line number Diff line number Diff line change @@ -15852,10 +15852,12 @@ function getInputS3ClientConfig() {
15852
15852
}
15853
15853
const s3config = {
15854
15854
credentials: {
15855
- accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId),
15856
- secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey)
15855
+ accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId) ||
15856
+ process.env["AWS_ACCESS_KEY_ID"],
15857
+ secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey) ||
15858
+ process.env["AWS_SECRET_ACCESS_KEY"]
15857
15859
},
15858
- region: core.getInput(constants_1.Inputs.AWSRegion),
15860
+ region: core.getInput(constants_1.Inputs.AWSRegion) || process.env["AWS_REGION"] ,
15859
15861
endpoint: core.getInput(constants_1.Inputs.AWSEndpoint),
15860
15862
bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint),
15861
15863
forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle)
Original file line number Diff line number Diff line change @@ -15852,10 +15852,12 @@ function getInputS3ClientConfig() {
15852
15852
}
15853
15853
const s3config = {
15854
15854
credentials: {
15855
- accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId),
15856
- secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey)
15855
+ accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId) ||
15856
+ process.env["AWS_ACCESS_KEY_ID"],
15857
+ secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey) ||
15858
+ process.env["AWS_SECRET_ACCESS_KEY"]
15857
15859
},
15858
- region: core.getInput(constants_1.Inputs.AWSRegion),
15860
+ region: core.getInput(constants_1.Inputs.AWSRegion) || process.env["AWS_REGION"] ,
15859
15861
endpoint: core.getInput(constants_1.Inputs.AWSEndpoint),
15860
15862
bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint),
15861
15863
forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle)
Original file line number Diff line number Diff line change @@ -15852,10 +15852,12 @@ function getInputS3ClientConfig() {
15852
15852
}
15853
15853
const s3config = {
15854
15854
credentials: {
15855
- accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId),
15856
- secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey)
15855
+ accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId) ||
15856
+ process.env["AWS_ACCESS_KEY_ID"],
15857
+ secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey) ||
15858
+ process.env["AWS_SECRET_ACCESS_KEY"]
15857
15859
},
15858
- region: core.getInput(constants_1.Inputs.AWSRegion),
15860
+ region: core.getInput(constants_1.Inputs.AWSRegion) || process.env["AWS_REGION"] ,
15859
15861
endpoint: core.getInput(constants_1.Inputs.AWSEndpoint),
15860
15862
bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint),
15861
15863
forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle)
Original file line number Diff line number Diff line change @@ -88,10 +88,14 @@ export function getInputS3ClientConfig(): S3ClientConfig | undefined {
88
88
89
89
const s3config = {
90
90
credentials : {
91
- accessKeyId : core . getInput ( Inputs . AWSAccessKeyId ) ,
92
- secretAccessKey : core . getInput ( Inputs . AWSSecretAccessKey )
91
+ accessKeyId :
92
+ core . getInput ( Inputs . AWSAccessKeyId ) ||
93
+ process . env [ "AWS_ACCESS_KEY_ID" ] ,
94
+ secretAccessKey :
95
+ core . getInput ( Inputs . AWSSecretAccessKey ) ||
96
+ process . env [ "AWS_SECRET_ACCESS_KEY" ]
93
97
} ,
94
- region : core . getInput ( Inputs . AWSRegion ) ,
98
+ region : core . getInput ( Inputs . AWSRegion ) || process . env [ "AWS_REGION" ] ,
95
99
endpoint : core . getInput ( Inputs . AWSEndpoint ) ,
96
100
bucketEndpoint : core . getBooleanInput ( Inputs . AWSS3BucketEndpoint ) ,
97
101
forcePathStyle : core . getBooleanInput ( Inputs . AWSS3ForcePathStyle )
You can’t perform that action at this time.
0 commit comments