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
* first draft attempt at adding role assumption option
* refinements
* const not var
* clean up asserts
* set explicit sts endpoint and clarify required inputs error message
* streamline mocks
* add new inputs to Action definition
* ignore .idea directory
* add initial assume role test
* make tests fail usefully when not in GitHub Actions
* add logic to handle suppression of stack trace
* pull credentials exports out into function
* convert environment variable patching to use object for source and add needed members
* add test for STS call
* compartmentalization and use custom user agent in role assumption STS client
* change DO_NOT_SUPRESS_STACK_TRACE to SHOW_STACK_TRACE
* update role-to-assume input description
Copy file name to clipboardExpand all lines: action.yml
+6
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,12 @@ inputs:
19
19
mask-aws-account-id:
20
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"
21
21
required: false
22
+
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"
24
+
required: false
25
+
role-duration-seconds:
26
+
description: "Role duration in seconds (default: 6 hours)"
27
+
required: false
22
28
outputs:
23
29
aws-account-id:
24
30
description: 'The AWS account ID for the provided credentials'
0 commit comments