Merge branch 'master' into v1-node16

This commit is contained in:
Tom Keller
2023-02-24 14:36:52 -08:00
4 changed files with 125 additions and 42677 deletions
+17
View File
@@ -138,6 +138,17 @@ In this example, the audience has been changed from the default to use a differe
Changing the default audience may be necessary when using non-default [AWS partitions](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
```yaml
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
role-session-name: MySessionName
mask-aws-account-id: false
```
In this example, account ID masking has been disabled. By default, the AWS account ID will be obscured in the action's output. This may be helpful when debugging action failures.
### Sample IAM Role CloudFormation Template
```yaml
Parameters:
@@ -149,6 +160,10 @@ Parameters:
Description: Arn for the GitHub OIDC Provider.
Default: ""
Type: String
OIDCAudience:
Description: Audience supplied to configure-aws-credentials.
Default: "sts.amazonaws.com"
Type: String
Conditions:
CreateOIDCProvider: !Equals
@@ -169,6 +184,8 @@ Resources:
- !Ref GithubOidc
- !Ref OIDCProviderArn
Condition:
StringEquals:
token.actions.githubusercontent.com:aud: !Ref OIDCAudience
StringLike:
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
+102 -42672
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -1100,9 +1100,9 @@
"integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw=="
},
"aws-sdk": {
"version": "2.1319.0",
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1319.0.tgz",
"integrity": "sha512-/gPCVsCARitph9FmBTXZmzjX0Br8LwBfu2MTNPGjVCiZkEUSoUWAAigIWkvrjTWOXCI7TSElRwtCzlsVHdv5VA==",
"version": "2.1320.0",
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1320.0.tgz",
"integrity": "sha512-oOsR+ClQZ6hmuAD/fu9gpsGMuLY1xG7m5SE/PDY3ZL4n34dmoXqwhQ3AHT1NTE0Z0sH1th6UqpHeHPS1trMOXw==",
"requires": {
"buffer": "4.9.2",
"events": "1.1.1",
+3 -2
View File
@@ -26,8 +26,9 @@
"homepage": "https://github.com/aws-actions/configure-aws-credentials#readme",
"dependencies": {
"@actions/core": "^1.10.0",
"aws-sdk": "^2.1319.0",
"axios": "^1.3.3"
"aws-sdk": "^2.1320.0",
"axios": "^1.3.3",
"https-proxy-agent": "^5.0.1"
},
"devDependencies": {
"@vercel/ncc": "^0.36.1",