You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,9 @@ We recommend following [Amazon IAM best practices](https://docs.aws.amazon.com/I
51
51
* [Monitor the activity](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#keep-a-log) of the credentials used in GitHub Actions workflows.
52
52
53
53
## Assuming a role
54
-
If you would like to use the credentials you provide to this action to assume a role, you can do so by specifying the role ARN in `role-to-assume`.
55
-
The role credentials will then be output instead of the ones you have provided.
56
-
The default session duration is 6 hours, but if you would like to adjust this you can pass a duration to `role-duration-seconds`.
54
+
If you would like to use the static credentials you provide to this action to assume a role, you can do so by specifying the role ARN in `role-to-assume`.
55
+
The role credentials will then be configured in the Actions environment instead of the static credentials you have provided.
56
+
The default session duration is 6 hours, but if you would like to adjust this you can pass a duration to `role-duration-seconds`.
57
57
The default session name is GitHubActions, and you can modify it by specifying the desired name in `role-session-name`.
Copy file name to clipboardExpand all lines: action.yml
+11-2
Original file line number
Diff line number
Diff line change
@@ -17,17 +17,26 @@ inputs:
17
17
description: 'AWS Region, e.g. us-east-2'
18
18
required: true
19
19
mask-aws-account-id:
20
-
description: "Whether to set the AWS account ID for these credentials as a secret value, so that it is masked in logs. Valid values are 'true' and 'false'. Defaults to true"
20
+
description: >-
21
+
Whether to set the AWS account ID for these credentials as a secret value,
22
+
so that it is masked in logs. Valid values are 'true' and 'false'.
23
+
Defaults to true
21
24
required: false
22
25
role-to-assume:
23
-
description: "Use the provided credentials to assume a Role and output the assumed credentials for that Role rather than the provided credentials"
26
+
description: >-
27
+
Use the provided credentials to assume an IAM role and configure the Actions
28
+
environment with the assumed role credentials rather than with the provided
29
+
credentials
24
30
required: false
25
31
role-duration-seconds:
26
32
description: "Role duration in seconds (default: 6 hours)"
27
33
required: false
28
34
role-session-name:
29
35
description: 'Role session name (default: GitHubActions)'
30
36
required: false
37
+
role-external-id:
38
+
description: 'The external ID of the role to assume'
39
+
required: false
31
40
outputs:
32
41
aws-account-id:
33
42
description: 'The AWS account ID for the provided credentials'
0 commit comments