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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,15 @@ Your account ID is not masked by default in workflow logs since it's not conside
268
268
#### Unset current credentials
269
269
Sometimes, existing credentials in your runner can get in the way of the intended outcome, and the recommended solution is to include another step in your workflow which unsets the environment variables set by this action. Now if you set the `unset-current-credentials` input to `true`, the workaround is made eaiser
270
270
271
+
#### Special characters in AWS_SECRET_ACCESS_KEY
272
+
Some edge cases are unable to properly parse an `AWS_SECRET_ACCESS_KEY` if it
273
+
contains special characters. For more information, please see the
If you set the `special-characters-workaround` option, this action will
276
+
continually retry fetching credentials until we get one that does not have
277
+
special characters. This option overrides the `disable-retry` and
278
+
`retry-max-attempts`options.
279
+
271
280
## OIDC
272
281
273
282
We recommend using [GitHub's OIDC provider](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services) to get short-lived AWS credentials needed for your actions. When using OIDC, this action will create a JWT unique to the workflow run, and it will use this JWT to assume the role. For this action to create the JWT, it is required for your workflow to have the `id-token: write` permission:
Copy file name to clipboardExpand all lines: action.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,9 @@ inputs:
70
70
retry-max-attempts:
71
71
description: The maximum number of attempts it will attempt to retry the assume role call. By default it will retry 12 times
72
72
required: false
73
+
special-characters-workaround:
74
+
description: Some environments do not support special characters in AWS_SECRET_ACCESS_KEY. This option will retry fetching credentials until the secret access key does not contain special characters. This option overrides disable-retry and retry-max-attempts. This option is disabled by default
75
+
required: false
73
76
outputs:
74
77
aws-account-id:
75
78
description: The AWS account ID for the provided credentials
0 commit comments