mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-12-01 12:24:23 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d5ef86486 | ||
|
|
90efa69dcf | ||
|
|
58a962275e | ||
|
|
7cf6880b48 | ||
|
|
5af53aa316 | ||
|
|
b5bf904d30 | ||
|
|
94a3c5057f | ||
|
|
8cc6746e67 | ||
|
|
5ebd453363 | ||
|
|
dc15517bef | ||
|
|
c089dbb31f | ||
|
|
ba75ef8845 | ||
|
|
4301ae5f0f |
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
".release-please-manifest.json": "4.0.2",
|
||||
"package.json": "6.0.0",
|
||||
".": "6.3.1"
|
||||
".": "6.3.2"
|
||||
}
|
||||
@@ -2,6 +2,13 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
## [6.3.2](https://github.com/aws-actions/configure-aws-credentials/compare/v6.3.1...v6.3.2) (2026-11-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* explictly disabling using existing creds works now ([#2047](https://github.com/aws-actions/configure-aws-credentials/issues/2047)) ([ba75ef8](https://github.com/aws-actions/configure-aws-credentials/commit/ba75ef8845e118a89b467015713752e35b644c4a))
|
||||
|
||||
## [6.3.1](https://github.com/aws-actions/configure-aws-credentials/compare/v6.3.0...v6.3.1) (2026-11-25)
|
||||
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ Authenticate to AWS in GitHub Actions (and others)! Works especially well with
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
role-to-assume: <Role ARN you created in step 2>
|
||||
aws-region: <AWS Region you want to use>
|
||||
@@ -269,7 +269,7 @@ specify the profile name as an environment variable in the job step:
|
||||
|
||||
```yaml
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-1
|
||||
role-to-assume: arn:aws:iam::123456789100:role/my-role
|
||||
@@ -287,14 +287,14 @@ step environment variables:
|
||||
|
||||
```yaml
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-1
|
||||
role-to-assume: arn:aws:iam::123456789100:role/my-first-role
|
||||
aws-profile: firstRoleInChain
|
||||
|
||||
- name: assume second role
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-2
|
||||
role-to-assume: arn:aws:iam::987654321000:role/my-second-role
|
||||
@@ -330,7 +330,7 @@ this action will always consider the `HTTP_PROXY` environment variable.
|
||||
Manually configured proxy:
|
||||
|
||||
```yaml
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-2
|
||||
role-to-assume: my-github-actions-role
|
||||
@@ -477,7 +477,7 @@ line.
|
||||
<summary>Inline session policy examples</summary>
|
||||
|
||||
```yaml
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
inline-session-policy: '{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1","Effect":"Allow","Action":"s3:List*","Resource":"*"}]}'
|
||||
```
|
||||
@@ -485,7 +485,7 @@ with:
|
||||
Or we can have a nicely formatted JSON as well:
|
||||
|
||||
```yaml
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
inline-session-policy: >-
|
||||
{
|
||||
@@ -513,7 +513,7 @@ the role.
|
||||
<summary>Managed session policy examples</summary>
|
||||
|
||||
```yaml
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
managed-session-policies: arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
|
||||
```
|
||||
@@ -521,7 +521,7 @@ with:
|
||||
And we can pass multiple managed policies likes this:
|
||||
|
||||
```yaml
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
managed-session-policies: |
|
||||
arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
|
||||
@@ -567,7 +567,7 @@ specify the audience through the `audience` input:
|
||||
|
||||
```yaml
|
||||
- name: Configure AWS Credentials for China region audience
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
audience: sts.amazonaws.com.cn
|
||||
aws-region: cn-northwest-1
|
||||
@@ -728,7 +728,7 @@ Provider. The audience would still be `sts.amazonaws.com` by default.
|
||||
|
||||
```yaml
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-2
|
||||
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
||||
@@ -744,13 +744,13 @@ environment variable and use it to assume the role
|
||||
|
||||
```yaml
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-2
|
||||
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
||||
role-session-name: MySessionName
|
||||
- name: Configure other AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-2
|
||||
role-to-assume: arn:aws:iam::987654321000:role/my-second-role
|
||||
@@ -772,7 +772,7 @@ alternatively, the `TagSession` permission can be omitted if you are using the
|
||||
|
||||
```yaml
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
@@ -793,7 +793,7 @@ like `role-to-assume: my-github-actions-role`.
|
||||
```yaml
|
||||
- name: Configure AWS Credentials 1
|
||||
id: creds
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-2
|
||||
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
||||
@@ -802,7 +802,7 @@ like `role-to-assume: my-github-actions-role`.
|
||||
run: |
|
||||
aws sts get-caller-identity
|
||||
- name: Configure AWS Credentials 2
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-2
|
||||
aws-access-key-id: ${{ steps.creds.outputs.aws-access-key-id }}
|
||||
@@ -833,14 +833,14 @@ provided.
|
||||
|
||||
```yaml
|
||||
- name: Configure AWS Credentials for Dev
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-east-1
|
||||
role-to-assume: arn:aws:iam::111111111111:role/dev-role
|
||||
aws-profile: dev
|
||||
|
||||
- name: Configure AWS Credentials for Prod
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.0
|
||||
uses: aws-actions/configure-aws-credentials@v6.3.2
|
||||
with:
|
||||
aws-region: us-west-2
|
||||
role-to-assume: arn:aws:iam::222222222222:role/prod-role
|
||||
|
||||
+13
-13
@@ -222,7 +222,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @aws-sdk/client-sts@3.1175.0
|
||||
- @aws-sdk/client-sts@3.1179.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -433,7 +433,7 @@ Apache License
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @aws-sdk/signature-v4-multi-region@3.996.52
|
||||
- @smithy/core@3.41.0
|
||||
- @smithy/core@3.41.1
|
||||
- @smithy/types@4.20.0
|
||||
|
||||
These packages each contain the following license:
|
||||
@@ -832,7 +832,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @aws-sdk/core@3.981.1
|
||||
- @aws-sdk/core@3.981.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -1042,10 +1042,10 @@ Apache License
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @aws-sdk/credential-provider-env@3.972.85
|
||||
- @aws-sdk/credential-provider-ini@3.973.31
|
||||
- @aws-sdk/credential-provider-node@3.972.98
|
||||
- @aws-sdk/token-providers@3.1175.0
|
||||
- @aws-sdk/credential-provider-env@3.972.86
|
||||
- @aws-sdk/credential-provider-ini@3.973.32
|
||||
- @aws-sdk/credential-provider-node@3.972.99
|
||||
- @aws-sdk/token-providers@3.1177.0
|
||||
- @aws-sdk/types@3.975.1
|
||||
- @aws-sdk/xml-builder@3.972.43
|
||||
- @smithy/credential-provider-imds@4.5.2
|
||||
@@ -1261,9 +1261,9 @@ Apache License
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @aws-sdk/credential-provider-process@3.972.85
|
||||
- @aws-sdk/credential-provider-sso@3.973.29
|
||||
- @aws-sdk/credential-provider-web-identity@3.972.91
|
||||
- @aws-sdk/credential-provider-process@3.972.86
|
||||
- @aws-sdk/credential-provider-sso@3.973.30
|
||||
- @aws-sdk/credential-provider-web-identity@3.972.92
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -1473,9 +1473,9 @@ Apache License
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @aws-sdk/credential-provider-http@3.972.87
|
||||
- @aws-sdk/credential-provider-login@3.972.93
|
||||
- @aws-sdk/nested-clients@3.998.4
|
||||
- @aws-sdk/credential-provider-http@3.972.88
|
||||
- @aws-sdk/credential-provider-login@3.972.94
|
||||
- @aws-sdk/nested-clients@3.998.5
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
|
||||
+150
-57
@@ -32619,7 +32619,7 @@ var init_race = __esm({
|
||||
let cleanup = () => {
|
||||
};
|
||||
const aborted = new Promise((_, reject) => {
|
||||
const handler = () => reject(createAbortError());
|
||||
const handler = () => reject(createAbortError(signal));
|
||||
if (signal.aborted) {
|
||||
handler();
|
||||
} else if (typeof signal.addEventListener === "function") {
|
||||
@@ -32631,7 +32631,13 @@ var init_race = __esm({
|
||||
});
|
||||
return Promise.race([promise, aborted]).finally(cleanup);
|
||||
};
|
||||
createAbortError = () => Object.assign(new Error("Request aborted"), { name: "AbortError" });
|
||||
createAbortError = (signal) => {
|
||||
const reason = signal.reason;
|
||||
if (reason instanceof Error) {
|
||||
return Object.assign(new Error("Request aborted"), { name: "AbortError", cause: reason });
|
||||
}
|
||||
return Object.assign(new Error(reason ? String(reason) : "Request aborted"), { name: "AbortError" });
|
||||
};
|
||||
isAbortError = (error3) => typeof error3 === "object" && error3 !== null && "name" in error3 && error3.name === "AbortError";
|
||||
}
|
||||
});
|
||||
@@ -32761,9 +32767,12 @@ function bindRetryMiddleware(isStreamingPayload2) {
|
||||
throw lastError;
|
||||
}
|
||||
try {
|
||||
if (abortSignal?.aborted) {
|
||||
throw lastError;
|
||||
}
|
||||
retryToken = await race(retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo), abortSignal);
|
||||
} catch (refreshError) {
|
||||
if (abortSignal?.aborted && isAbortError(refreshError)) {
|
||||
if (refreshError !== lastError && abortSignal?.aborted && isAbortError(refreshError)) {
|
||||
throw refreshError;
|
||||
}
|
||||
if (!lastError.$metadata) {
|
||||
@@ -37657,7 +37666,7 @@ var init_package = __esm({
|
||||
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
||||
package_default = {
|
||||
name: "@aws-sdk/nested-clients",
|
||||
version: "3.998.4",
|
||||
version: "3.998.5",
|
||||
description: "Nested clients for AWS SDK packages.",
|
||||
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
||||
license: "Apache-2.0",
|
||||
@@ -37757,10 +37766,10 @@ var init_package = __esm({
|
||||
"test:watch": "yarn g:vitest watch"
|
||||
},
|
||||
dependencies: {
|
||||
"@aws-sdk/core": "^3.981.1",
|
||||
"@aws-sdk/core": "^3.981.2",
|
||||
"@aws-sdk/signature-v4-multi-region": "^3.996.52",
|
||||
"@aws-sdk/types": "^3.975.1",
|
||||
"@smithy/core": "^3.40.0",
|
||||
"@smithy/core": "^3.41.1",
|
||||
"@smithy/fetch-http-handler": "^5.8.1",
|
||||
"@smithy/node-http-handler": "^4.14.2",
|
||||
"@smithy/types": "^4.20.0",
|
||||
@@ -43447,7 +43456,7 @@ var init_STSServiceException = __esm({
|
||||
});
|
||||
|
||||
// node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js
|
||||
var ExpiredTokenException2, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, IDPCommunicationErrorException;
|
||||
var ExpiredTokenException2, InvalidContextAssertionException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, IDPCommunicationErrorException;
|
||||
var init_errors3 = __esm({
|
||||
"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js"() {
|
||||
init_STSServiceException();
|
||||
@@ -43464,6 +43473,19 @@ var init_errors3 = __esm({
|
||||
Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
|
||||
}
|
||||
};
|
||||
InvalidContextAssertionException = class _InvalidContextAssertionException extends STSServiceException {
|
||||
static shapeId = "com.amazonaws.sts#InvalidContextAssertionException";
|
||||
name = "InvalidContextAssertionException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "InvalidContextAssertionException",
|
||||
$fault: "client",
|
||||
...opts
|
||||
});
|
||||
Object.setPrototypeOf(this, _InvalidContextAssertionException.prototype);
|
||||
}
|
||||
};
|
||||
MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException {
|
||||
static shapeId = "com.amazonaws.sts#MalformedPolicyDocumentException";
|
||||
name = "MalformedPolicyDocumentException";
|
||||
@@ -43547,7 +43569,7 @@ var init_errors3 = __esm({
|
||||
});
|
||||
|
||||
// node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js
|
||||
var _A, _AKI, _AR, _ARI, _ARR, _ARRs, _ARU, _ARWWI, _ARWWIR, _ARWWIRs, _Au, _C, _CA, _DS, _E, _EI, _ETE2, _IDPCEE, _IDPRCE, _IITE, _K, _MPDE, _MSTS, _P, _PA, _PAr, _PC, _PCLT, _PCr, _PDT, _PI, _PPS, _PPTLE, _Pr, _RA, _RDE, _RSN, _SAK, _SFWIT, _SI, _SN, _ST, _STS, _STU, _T, _TC, _TTK, _Ta, _V, _WIT, _a, _aKST, _aQE, _c3, _cTT, _e3, _hE3, _m2, _pDLT, _s3, _tLT, n03, _s_registry3, STSServiceException$, n0_registry3, ExpiredTokenException$2, IDPCommunicationErrorException$, IDPRejectedClaimException$, InvalidIdentityTokenException$, MalformedPolicyDocumentException$, PackedPolicyTooLargeException$, RegionDisabledException$, errorTypeRegistries3, accessKeySecretType, clientTokenType, AssumedRoleUser$, AssumeRoleRequest$, AssumeRoleResponse$, AssumeRoleWithWebIdentityRequest$, AssumeRoleWithWebIdentityResponse$, Credentials$, PolicyDescriptorType$, ProvidedContext$, Tag$, policyDescriptorListType, ProvidedContextsListType, tagKeyListType, tagListType, AssumeRole$, AssumeRoleWithWebIdentity$;
|
||||
var _A, _AKI, _AR, _ARI, _ARR, _ARRs, _ARU, _ARWWI, _ARWWIR, _ARWWIRs, _Au, _C, _CA, _DS, _E, _EI, _ETE2, _FPA, _I, _ICAE, _IDPCEE, _IDPRCE, _IITE, _IP, _K, _MPDE, _MSTS, _OI, _P, _PA, _PAr, _PC, _PCLT, _PCr, _PDT, _PI, _PPS, _PPTLE, _Pr, _RA, _RDE, _RSN, _S, _SAK, _SFWIT, _SI, _SN, _ST, _STS, _STU, _STu, _T, _TC, _TCr, _TIPC, _TTK, _Ta, _V, _WIT, _a, _aKST, _aQE, _c3, _cTT, _e3, _hE3, _m2, _oIIT, _oIST, _oISTT, _pDLT, _s3, _tCIPMT, _tCVT, _tLT, n03, _s_registry3, STSServiceException$, n0_registry3, ExpiredTokenException$2, IDPCommunicationErrorException$, IDPRejectedClaimException$, InvalidContextAssertionException$, InvalidIdentityTokenException$, MalformedPolicyDocumentException$, PackedPolicyTooLargeException$, RegionDisabledException$, errorTypeRegistries3, accessKeySecretType, clientTokenType, originIdentityIssuerType, originIdentitySubjectType, originIdentitySubjectTypeType, transactionContextValueType, AssumedRoleUser$, AssumeRoleRequest$, AssumeRoleResponse$, AssumeRoleWithWebIdentityRequest$, AssumeRoleWithWebIdentityResponse$, Credentials$, OriginIdentity$, PolicyDescriptorType$, ProvidedContext$, Tag$, TransactionContext$, TrustedIdentityPropagationContext$, policyDescriptorListType, ProvidedContextsListType, tagKeyListType, tagListType, transactionContextIdentityProviderMapType, AssumeRole$, AssumeRoleWithWebIdentity$;
|
||||
var init_schemas_03 = __esm({
|
||||
"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js"() {
|
||||
init_schema();
|
||||
@@ -43570,12 +43592,17 @@ var init_schemas_03 = __esm({
|
||||
_E = "Expiration";
|
||||
_EI = "ExternalId";
|
||||
_ETE2 = "ExpiredTokenException";
|
||||
_FPA = "FederatedProviderArn";
|
||||
_I = "Issuer";
|
||||
_ICAE = "InvalidContextAssertionException";
|
||||
_IDPCEE = "IDPCommunicationErrorException";
|
||||
_IDPRCE = "IDPRejectedClaimException";
|
||||
_IITE = "InvalidIdentityTokenException";
|
||||
_IP = "IdentityProvider";
|
||||
_K = "Key";
|
||||
_MPDE = "MalformedPolicyDocumentException";
|
||||
_MSTS = "MinimumSessionTokenSize";
|
||||
_OI = "OriginIdentity";
|
||||
_P = "Policy";
|
||||
_PA = "PolicyArns";
|
||||
_PAr = "ProviderArn";
|
||||
@@ -43590,6 +43617,7 @@ var init_schemas_03 = __esm({
|
||||
_RA = "RoleArn";
|
||||
_RDE = "RegionDisabledException";
|
||||
_RSN = "RoleSessionName";
|
||||
_S = "Subject";
|
||||
_SAK = "SecretAccessKey";
|
||||
_SFWIT = "SubjectFromWebIdentityToken";
|
||||
_SI = "SourceIdentity";
|
||||
@@ -43597,8 +43625,11 @@ var init_schemas_03 = __esm({
|
||||
_ST = "SessionToken";
|
||||
_STS = "SessionTokenSize";
|
||||
_STU = "SessionTokenUtilization";
|
||||
_STu = "SubjectType";
|
||||
_T = "Tags";
|
||||
_TC = "TokenCode";
|
||||
_TCr = "TransactionContext";
|
||||
_TIPC = "TrustedIdentityPropagationContext";
|
||||
_TTK = "TransitiveTagKeys";
|
||||
_Ta = "Tag";
|
||||
_V = "Value";
|
||||
@@ -43611,8 +43642,13 @@ var init_schemas_03 = __esm({
|
||||
_e3 = "error";
|
||||
_hE3 = "httpError";
|
||||
_m2 = "message";
|
||||
_oIIT = "originIdentityIssuerType";
|
||||
_oIST = "originIdentitySubjectType";
|
||||
_oISTT = "originIdentitySubjectTypeType";
|
||||
_pDLT = "policyDescriptorListType";
|
||||
_s3 = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
||||
_tCIPMT = "transactionContextIdentityProviderMapType";
|
||||
_tCVT = "transactionContextValueType";
|
||||
_tLT = "tagListType";
|
||||
n03 = "com.amazonaws.sts";
|
||||
_s_registry3 = new TypeRegistry(_s3);
|
||||
@@ -43646,6 +43682,15 @@ var init_schemas_03 = __esm({
|
||||
[0]
|
||||
];
|
||||
n0_registry3.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
||||
InvalidContextAssertionException$ = [
|
||||
-3,
|
||||
n03,
|
||||
_ICAE,
|
||||
{ [_aQE]: [`InvalidContextAssertion`, 400], [_e3]: _c3, [_hE3]: 400 },
|
||||
[_m2],
|
||||
[0]
|
||||
];
|
||||
n0_registry3.registerError(InvalidContextAssertionException$, InvalidContextAssertionException);
|
||||
InvalidIdentityTokenException$ = [
|
||||
-3,
|
||||
n03,
|
||||
@@ -43688,6 +43733,10 @@ var init_schemas_03 = __esm({
|
||||
];
|
||||
accessKeySecretType = [0, n03, _aKST, 8, 0];
|
||||
clientTokenType = [0, n03, _cTT, 8, 0];
|
||||
originIdentityIssuerType = [0, n03, _oIIT, 8, 0];
|
||||
originIdentitySubjectType = [0, n03, _oIST, 8, 0];
|
||||
originIdentitySubjectTypeType = [0, n03, _oISTT, 8, 0];
|
||||
transactionContextValueType = [0, n03, _tCVT, 8, 0];
|
||||
AssumedRoleUser$ = [
|
||||
3,
|
||||
n03,
|
||||
@@ -43728,8 +43777,8 @@ var init_schemas_03 = __esm({
|
||||
n03,
|
||||
_ARWWIRs,
|
||||
0,
|
||||
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
||||
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
||||
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS, _TIPC],
|
||||
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
|
||||
];
|
||||
Credentials$ = [
|
||||
3,
|
||||
@@ -43740,6 +43789,14 @@ var init_schemas_03 = __esm({
|
||||
[0, [() => accessKeySecretType, 0], 0, 4],
|
||||
4
|
||||
];
|
||||
OriginIdentity$ = [
|
||||
3,
|
||||
n03,
|
||||
_OI,
|
||||
0,
|
||||
[_S, _STu, _I, _FPA],
|
||||
[[() => originIdentitySubjectType, 0], [() => originIdentitySubjectTypeType, 0], [() => originIdentityIssuerType, 0], 0]
|
||||
];
|
||||
PolicyDescriptorType$ = [
|
||||
3,
|
||||
n03,
|
||||
@@ -43765,6 +43822,22 @@ var init_schemas_03 = __esm({
|
||||
[0, 0],
|
||||
2
|
||||
];
|
||||
TransactionContext$ = [
|
||||
3,
|
||||
n03,
|
||||
_TCr,
|
||||
0,
|
||||
[_IP],
|
||||
[[() => transactionContextIdentityProviderMapType, 0]]
|
||||
];
|
||||
TrustedIdentityPropagationContext$ = [
|
||||
3,
|
||||
n03,
|
||||
_TIPC,
|
||||
8,
|
||||
[_OI, _TCr],
|
||||
[[() => OriginIdentity$, 0], [() => TransactionContext$, 0]]
|
||||
];
|
||||
policyDescriptorListType = [
|
||||
1,
|
||||
n03,
|
||||
@@ -43787,6 +43860,20 @@ var init_schemas_03 = __esm({
|
||||
0,
|
||||
() => Tag$
|
||||
];
|
||||
transactionContextIdentityProviderMapType = [
|
||||
2,
|
||||
n03,
|
||||
_tCIPMT,
|
||||
0,
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
() => transactionContextValueType,
|
||||
0
|
||||
]
|
||||
];
|
||||
AssumeRole$ = [
|
||||
9,
|
||||
n03,
|
||||
@@ -44272,10 +44359,13 @@ __export(sts_exports, {
|
||||
IDPCommunicationErrorException$: () => IDPCommunicationErrorException$,
|
||||
IDPRejectedClaimException: () => IDPRejectedClaimException,
|
||||
IDPRejectedClaimException$: () => IDPRejectedClaimException$,
|
||||
InvalidContextAssertionException: () => InvalidContextAssertionException,
|
||||
InvalidContextAssertionException$: () => InvalidContextAssertionException$,
|
||||
InvalidIdentityTokenException: () => InvalidIdentityTokenException,
|
||||
InvalidIdentityTokenException$: () => InvalidIdentityTokenException$,
|
||||
MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
|
||||
MalformedPolicyDocumentException$: () => MalformedPolicyDocumentException$,
|
||||
OriginIdentity$: () => OriginIdentity$,
|
||||
PackedPolicyTooLargeException: () => PackedPolicyTooLargeException,
|
||||
PackedPolicyTooLargeException$: () => PackedPolicyTooLargeException$,
|
||||
PolicyDescriptorType$: () => PolicyDescriptorType$,
|
||||
@@ -44287,6 +44377,8 @@ __export(sts_exports, {
|
||||
STSServiceException: () => STSServiceException,
|
||||
STSServiceException$: () => STSServiceException$,
|
||||
Tag$: () => Tag$,
|
||||
TransactionContext$: () => TransactionContext$,
|
||||
TrustedIdentityPropagationContext$: () => TrustedIdentityPropagationContext$,
|
||||
__Client: () => Client,
|
||||
decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider,
|
||||
errorTypeRegistries: () => errorTypeRegistries3,
|
||||
@@ -45164,6 +45256,7 @@ var init_enums2 = __esm({
|
||||
CONFLICT: "CONFLICT",
|
||||
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
||||
INVALID_REQUEST: "INVALID_REQUEST",
|
||||
OAUTH_INVALID_CLIENT: "invalid_client",
|
||||
OAUTH_INVALID_GRANT: "invalid_grant",
|
||||
OAUTH_INVALID_REQUEST: "invalid_request",
|
||||
OAUTH_INVALID_SCOPE: "invalid_scope",
|
||||
@@ -46343,7 +46436,7 @@ var require_dist_cjs16 = __commonJS({
|
||||
Region: { type: "builtInParams", name: "region" },
|
||||
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
||||
};
|
||||
var version = "3.1174.0";
|
||||
var version = "3.1178.0";
|
||||
var packageInfo = {
|
||||
version
|
||||
};
|
||||
@@ -46367,7 +46460,7 @@ var require_dist_cjs16 = __commonJS({
|
||||
Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
|
||||
}
|
||||
};
|
||||
var InvalidContextAssertionException = class _InvalidContextAssertionException extends STSServiceException2 {
|
||||
var InvalidContextAssertionException2 = class _InvalidContextAssertionException extends STSServiceException2 {
|
||||
static shapeId = "com.amazonaws.sts#InvalidContextAssertionException";
|
||||
name = "InvalidContextAssertionException";
|
||||
$fault = "client";
|
||||
@@ -46581,7 +46674,7 @@ var require_dist_cjs16 = __commonJS({
|
||||
var _EM = "EncodedMessage";
|
||||
var _ETE3 = "ExpiredTokenException";
|
||||
var _ETITE = "ExpiredTradeInTokenException";
|
||||
var _FPA = "FederatedProviderArn";
|
||||
var _FPA2 = "FederatedProviderArn";
|
||||
var _FU = "FederatedUser";
|
||||
var _FUI = "FederatedUserId";
|
||||
var _GAKI = "GetAccessKeyInfo";
|
||||
@@ -46605,13 +46698,13 @@ var require_dist_cjs16 = __commonJS({
|
||||
var _GWIT = "GetWebIdentityToken";
|
||||
var _GWITR = "GetWebIdentityTokenRequest";
|
||||
var _GWITRe = "GetWebIdentityTokenResponse";
|
||||
var _I = "Issuer";
|
||||
var _I2 = "Issuer";
|
||||
var _IAME = "InvalidAuthorizationMessageException";
|
||||
var _ICAE = "InvalidContextAssertionException";
|
||||
var _ICAE2 = "InvalidContextAssertionException";
|
||||
var _IDPCEE2 = "IDPCommunicationErrorException";
|
||||
var _IDPRCE2 = "IDPRejectedClaimException";
|
||||
var _IITE2 = "InvalidIdentityTokenException";
|
||||
var _IP = "IdentityProvider";
|
||||
var _IP2 = "IdentityProvider";
|
||||
var _ISCE = "InvalidSubjectCredentialsException";
|
||||
var _ISLE = "InsufficientSessionLifetimeException";
|
||||
var _JWTPSEE = "JWTPayloadSizeExceededException";
|
||||
@@ -46620,7 +46713,7 @@ var require_dist_cjs16 = __commonJS({
|
||||
var _MSTS2 = "MinimumSessionTokenSize";
|
||||
var _N = "Name";
|
||||
var _NQ = "NameQualifier";
|
||||
var _OI = "OriginIdentity";
|
||||
var _OI2 = "OriginIdentity";
|
||||
var _OWIFDE = "OutboundWebIdentityFederationDisabledException";
|
||||
var _P2 = "Policy";
|
||||
var _PA2 = "PolicyArns";
|
||||
@@ -46637,7 +46730,7 @@ var require_dist_cjs16 = __commonJS({
|
||||
var _RA2 = "RoleArn";
|
||||
var _RDE2 = "RegionDisabledException";
|
||||
var _RSN2 = "RoleSessionName";
|
||||
var _S = "Subject";
|
||||
var _S2 = "Subject";
|
||||
var _SA = "SigningAlgorithm";
|
||||
var _SAK2 = "SecretAccessKey";
|
||||
var _SAMLA = "SAMLAssertion";
|
||||
@@ -46659,8 +46752,8 @@ var require_dist_cjs16 = __commonJS({
|
||||
var _Sc = "Scope";
|
||||
var _T2 = "Tags";
|
||||
var _TC2 = "TokenCode";
|
||||
var _TCr = "TransactionContext";
|
||||
var _TIPC = "TrustedIdentityPropagationContext";
|
||||
var _TCr2 = "TransactionContext";
|
||||
var _TIPC2 = "TrustedIdentityPropagationContext";
|
||||
var _TIT = "TradeInToken";
|
||||
var _TP = "TargetPrincipal";
|
||||
var _TPA = "TaskPolicyArn";
|
||||
@@ -46677,13 +46770,13 @@ var require_dist_cjs16 = __commonJS({
|
||||
var _e5 = "error";
|
||||
var _hE5 = "httpError";
|
||||
var _m4 = "message";
|
||||
var _oIIT = "originIdentityIssuerType";
|
||||
var _oIST = "originIdentitySubjectType";
|
||||
var _oISTT = "originIdentitySubjectTypeType";
|
||||
var _oIIT2 = "originIdentityIssuerType";
|
||||
var _oIST2 = "originIdentitySubjectType";
|
||||
var _oISTT2 = "originIdentitySubjectTypeType";
|
||||
var _pDLT2 = "policyDescriptorListType";
|
||||
var _s5 = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
||||
var _tCIPMT = "transactionContextIdentityProviderMapType";
|
||||
var _tCVT = "transactionContextValueType";
|
||||
var _tCIPMT2 = "transactionContextIdentityProviderMapType";
|
||||
var _tCVT2 = "transactionContextValueType";
|
||||
var _tITT = "tradeInTokenType";
|
||||
var _tLT2 = "tagListType";
|
||||
var _wITT = "webIdentityTokenType";
|
||||
@@ -46746,15 +46839,15 @@ var require_dist_cjs16 = __commonJS({
|
||||
[0]
|
||||
];
|
||||
n0_registry5.registerError(InvalidAuthorizationMessageException$, InvalidAuthorizationMessageException);
|
||||
var InvalidContextAssertionException$ = [
|
||||
var InvalidContextAssertionException$2 = [
|
||||
-3,
|
||||
n05,
|
||||
_ICAE,
|
||||
_ICAE2,
|
||||
{ [_aQE2]: [`InvalidContextAssertion`, 400], [_e5]: _c5, [_hE5]: 400 },
|
||||
[_m4],
|
||||
[0]
|
||||
];
|
||||
n0_registry5.registerError(InvalidContextAssertionException$, InvalidContextAssertionException);
|
||||
n0_registry5.registerError(InvalidContextAssertionException$2, InvalidContextAssertionException2);
|
||||
var InvalidIdentityTokenException$2 = [
|
||||
-3,
|
||||
n05,
|
||||
@@ -46833,12 +46926,12 @@ var require_dist_cjs16 = __commonJS({
|
||||
];
|
||||
var accessKeySecretType2 = [0, n05, _aKST2, 8, 0];
|
||||
var clientTokenType2 = [0, n05, _cTT2, 8, 0];
|
||||
var originIdentityIssuerType = [0, n05, _oIIT, 8, 0];
|
||||
var originIdentitySubjectType = [0, n05, _oIST, 8, 0];
|
||||
var originIdentitySubjectTypeType = [0, n05, _oISTT, 8, 0];
|
||||
var originIdentityIssuerType2 = [0, n05, _oIIT2, 8, 0];
|
||||
var originIdentitySubjectType2 = [0, n05, _oIST2, 8, 0];
|
||||
var originIdentitySubjectTypeType2 = [0, n05, _oISTT2, 8, 0];
|
||||
var SAMLAssertionType = [0, n05, _SAMLAT, 8, 0];
|
||||
var tradeInTokenType = [0, n05, _tITT, 8, 0];
|
||||
var transactionContextValueType = [0, n05, _tCVT, 8, 0];
|
||||
var transactionContextValueType2 = [0, n05, _tCVT2, 8, 0];
|
||||
var webIdentityTokenType = [0, n05, _wITT, 8, 0];
|
||||
var AssumedRoleUser$2 = [
|
||||
3,
|
||||
@@ -46880,8 +46973,8 @@ var require_dist_cjs16 = __commonJS({
|
||||
n05,
|
||||
_ARWSAMLRs,
|
||||
0,
|
||||
[_C2, _ARU2, _PPS2, _S, _ST2, _I, _Au2, _NQ, _SI2, _STU2, _STS2, _TIPC],
|
||||
[[() => Credentials$2, 0], () => AssumedRoleUser$2, 1, 0, 0, 0, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
|
||||
[_C2, _ARU2, _PPS2, _S2, _ST2, _I2, _Au2, _NQ, _SI2, _STU2, _STS2, _TIPC2],
|
||||
[[() => Credentials$2, 0], () => AssumedRoleUser$2, 1, 0, 0, 0, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$2, 0]]
|
||||
];
|
||||
var AssumeRoleWithWebIdentityRequest$2 = [
|
||||
3,
|
||||
@@ -46897,8 +46990,8 @@ var require_dist_cjs16 = __commonJS({
|
||||
n05,
|
||||
_ARWWIRs2,
|
||||
0,
|
||||
[_C2, _SFWIT2, _ARU2, _PPS2, _Pr2, _Au2, _SI2, _STU2, _STS2, _TIPC],
|
||||
[[() => Credentials$2, 0], 0, () => AssumedRoleUser$2, 1, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
|
||||
[_C2, _SFWIT2, _ARU2, _PPS2, _Pr2, _Au2, _SI2, _STU2, _STS2, _TIPC2],
|
||||
[[() => Credentials$2, 0], 0, () => AssumedRoleUser$2, 1, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$2, 0]]
|
||||
];
|
||||
var AssumeRootRequest$ = [
|
||||
3,
|
||||
@@ -47068,13 +47161,13 @@ var require_dist_cjs16 = __commonJS({
|
||||
[_WIT2, _E2],
|
||||
[[() => webIdentityTokenType, 0], 4]
|
||||
];
|
||||
var OriginIdentity$ = [
|
||||
var OriginIdentity$2 = [
|
||||
3,
|
||||
n05,
|
||||
_OI,
|
||||
_OI2,
|
||||
0,
|
||||
[_S, _ST2, _I, _FPA],
|
||||
[[() => originIdentitySubjectType, 0], [() => originIdentitySubjectTypeType, 0], [() => originIdentityIssuerType, 0], 0]
|
||||
[_S2, _ST2, _I2, _FPA2],
|
||||
[[() => originIdentitySubjectType2, 0], [() => originIdentitySubjectTypeType2, 0], [() => originIdentityIssuerType2, 0], 0]
|
||||
];
|
||||
var PolicyDescriptorType$2 = [
|
||||
3,
|
||||
@@ -47110,21 +47203,21 @@ var require_dist_cjs16 = __commonJS({
|
||||
[0, 0],
|
||||
2
|
||||
];
|
||||
var TransactionContext$ = [
|
||||
var TransactionContext$2 = [
|
||||
3,
|
||||
n05,
|
||||
_TCr,
|
||||
_TCr2,
|
||||
0,
|
||||
[_IP],
|
||||
[[() => transactionContextIdentityProviderMapType, 0]]
|
||||
[_IP2],
|
||||
[[() => transactionContextIdentityProviderMapType2, 0]]
|
||||
];
|
||||
var TrustedIdentityPropagationContext$ = [
|
||||
var TrustedIdentityPropagationContext$2 = [
|
||||
3,
|
||||
n05,
|
||||
_TIPC,
|
||||
_TIPC2,
|
||||
8,
|
||||
[_OI, _TCr],
|
||||
[[() => OriginIdentity$, 0], [() => TransactionContext$, 0]]
|
||||
[_OI2, _TCr2],
|
||||
[[() => OriginIdentity$2, 0], [() => TransactionContext$2, 0]]
|
||||
];
|
||||
var policyDescriptorListType2 = [
|
||||
1,
|
||||
@@ -47147,17 +47240,17 @@ var require_dist_cjs16 = __commonJS({
|
||||
0,
|
||||
() => Tag$2
|
||||
];
|
||||
var transactionContextIdentityProviderMapType = [
|
||||
var transactionContextIdentityProviderMapType2 = [
|
||||
2,
|
||||
n05,
|
||||
_tCIPMT,
|
||||
_tCIPMT2,
|
||||
0,
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
() => transactionContextValueType,
|
||||
() => transactionContextValueType2,
|
||||
0
|
||||
]
|
||||
];
|
||||
@@ -47657,8 +47750,8 @@ var require_dist_cjs16 = __commonJS({
|
||||
exports2.InsufficientSessionLifetimeException$ = InsufficientSessionLifetimeException$;
|
||||
exports2.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException;
|
||||
exports2.InvalidAuthorizationMessageException$ = InvalidAuthorizationMessageException$;
|
||||
exports2.InvalidContextAssertionException = InvalidContextAssertionException;
|
||||
exports2.InvalidContextAssertionException$ = InvalidContextAssertionException$;
|
||||
exports2.InvalidContextAssertionException = InvalidContextAssertionException2;
|
||||
exports2.InvalidContextAssertionException$ = InvalidContextAssertionException$2;
|
||||
exports2.InvalidIdentityTokenException = InvalidIdentityTokenException2;
|
||||
exports2.InvalidIdentityTokenException$ = InvalidIdentityTokenException$2;
|
||||
exports2.InvalidSubjectCredentialsException = InvalidSubjectCredentialsException;
|
||||
@@ -47667,7 +47760,7 @@ var require_dist_cjs16 = __commonJS({
|
||||
exports2.JWTPayloadSizeExceededException$ = JWTPayloadSizeExceededException$;
|
||||
exports2.MalformedPolicyDocumentException = MalformedPolicyDocumentException2;
|
||||
exports2.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$2;
|
||||
exports2.OriginIdentity$ = OriginIdentity$;
|
||||
exports2.OriginIdentity$ = OriginIdentity$2;
|
||||
exports2.OutboundWebIdentityFederationDisabledException = OutboundWebIdentityFederationDisabledException;
|
||||
exports2.OutboundWebIdentityFederationDisabledException$ = OutboundWebIdentityFederationDisabledException$;
|
||||
exports2.PackedPolicyTooLargeException = PackedPolicyTooLargeException2;
|
||||
@@ -47684,8 +47777,8 @@ var require_dist_cjs16 = __commonJS({
|
||||
exports2.SessionDurationEscalationException = SessionDurationEscalationException;
|
||||
exports2.SessionDurationEscalationException$ = SessionDurationEscalationException$;
|
||||
exports2.Tag$ = Tag$2;
|
||||
exports2.TransactionContext$ = TransactionContext$;
|
||||
exports2.TrustedIdentityPropagationContext$ = TrustedIdentityPropagationContext$;
|
||||
exports2.TransactionContext$ = TransactionContext$2;
|
||||
exports2.TrustedIdentityPropagationContext$ = TrustedIdentityPropagationContext$2;
|
||||
exports2.WebIdentityTokenSubjectModeType = WebIdentityTokenSubjectModeType;
|
||||
exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider2;
|
||||
exports2.errorTypeRegistries = errorTypeRegistries5;
|
||||
@@ -78806,7 +78899,7 @@ async function run() {
|
||||
const unsetCurrentCredentials = getBooleanInput("unset-current-credentials", { required: false });
|
||||
let disableRetry = getBooleanInput("disable-retry", { required: false });
|
||||
const specialCharacterWorkaround = getBooleanInput("special-characters-workaround", { required: false });
|
||||
const useExistingCredentials = getInput("use-existing-credentials", { required: false });
|
||||
const useExistingCredentials = getBooleanInput("use-existing-credentials", { required: false });
|
||||
let maxRetries = Number.parseInt(getInput("retry-max-attempts", { required: false })) || 12;
|
||||
const expectedAccountIds = getInput("allowed-account-ids", { required: false }).split(",").map((s2) => s2.trim());
|
||||
const forceSkipOidc = getBooleanInput("force-skip-oidc", { required: false });
|
||||
|
||||
Generated
+333
-353
File diff suppressed because it is too large.
Load diff
+8
-8
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "configure-aws-credentials",
|
||||
"description": "A GitHub Action to configure AWS credentials",
|
||||
"version": "6.3.1",
|
||||
"version": "6.3.2",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"lint": "biome check --error-on-warnings ./src ./test && markdownlint -i node_modules -i CHANGELOG.md '**/*.md'",
|
||||
@@ -18,24 +18,24 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aws-sdk/credential-provider-env": "^3.972.85",
|
||||
"@biomejs/biome": "2.6.8",
|
||||
"@biomejs/biome": "2.6.9",
|
||||
"@smithy/property-provider": "^4.5.2",
|
||||
"@types/node": "^26.6.6",
|
||||
"@vitest/coverage-v8": "5.1.1",
|
||||
"@types/node": "^26.6.11",
|
||||
"@vitest/coverage-v8": "5.1.2",
|
||||
"aws-sdk-client-mock": "^4.1.0",
|
||||
"esbuild": "^0.28.2",
|
||||
"generate-license-file": "^4.2.5",
|
||||
"json-schema": "^0.4.0",
|
||||
"markdownlint-cli": "^0.50.0",
|
||||
"markdownlint-cli": "^0.50.1",
|
||||
"memfs": "^4.80.1",
|
||||
"standard-version": "^9.5.0",
|
||||
"typescript": "^7.0.2",
|
||||
"vitest": "5.1.1"
|
||||
"vitest": "5.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "^3.0.1",
|
||||
"@aws-sdk/client-sts": "^3.1175.0",
|
||||
"@aws-sdk/credential-provider-node": "^3.972.92",
|
||||
"@aws-sdk/client-sts": "^3.1179.0",
|
||||
"@aws-sdk/credential-provider-node": "^3.972.99",
|
||||
"@smithy/node-http-handler": "^4.14.2",
|
||||
"proxy-agent": "^8.0.3"
|
||||
},
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ export async function run() {
|
||||
const unsetCurrentCredentials = getBooleanInput('unset-current-credentials', { required: false });
|
||||
let disableRetry = getBooleanInput('disable-retry', { required: false });
|
||||
const specialCharacterWorkaround = getBooleanInput('special-characters-workaround', { required: false });
|
||||
const useExistingCredentials = core.getInput('use-existing-credentials', { required: false });
|
||||
const useExistingCredentials = getBooleanInput('use-existing-credentials', { required: false });
|
||||
let maxRetries = Number.parseInt(core.getInput('retry-max-attempts', { required: false })) || 12;
|
||||
const expectedAccountIds = core
|
||||
.getInput('allowed-account-ids', { required: false })
|
||||
|
||||
@@ -648,6 +648,20 @@ describe('Configure AWS Credentials', {}, () => {
|
||||
await run();
|
||||
expect(core.setFailed).not.toHaveBeenCalled();
|
||||
});
|
||||
it('gets new creds if user explicitly said not to use existing credentials', {}, async () => {
|
||||
vi.mocked(core.getInput).mockImplementation(mocks.getInput(mocks.USE_EXISTING_CREDENTIALS_FALSE_INPUTS));
|
||||
vi.mocked(core.getIDToken).mockResolvedValue('testoidctoken');
|
||||
process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN = 'fake-token';
|
||||
// Valid existing credentials are available, but should be ignored
|
||||
mockedSTSClient.on(GetCallerIdentityCommand).resolves(mocks.outputs.GET_CALLER_IDENTITY);
|
||||
mockedSTSClient.on(AssumeRoleWithWebIdentityCommand).resolvesOnce(mocks.outputs.STS_CREDENTIALS);
|
||||
await run();
|
||||
expect(core.notice).not.toHaveBeenCalledWith('Pre-existing credentials are valid. No need to generate new ones.');
|
||||
expect(core.info).toHaveBeenCalledWith('Assuming role with OIDC');
|
||||
expect(mockedSTSClient.commandCalls(AssumeRoleWithWebIdentityCommand)).toHaveLength(1);
|
||||
expect(core.exportVariable).toHaveBeenCalledWith('AWS_ACCESS_KEY_ID', 'STSAWSACCESSKEYID');
|
||||
expect(core.setFailed).not.toHaveBeenCalled();
|
||||
});
|
||||
it("doesn't export credentials as environment variables if told not to", {}, async () => {
|
||||
mockedSTSClient.on(AssumeRoleWithWebIdentityCommand).resolvesOnce(mocks.outputs.STS_CREDENTIALS);
|
||||
// Credentials are validated (and their account resolved) even when not exported to the
|
||||
|
||||
@@ -91,6 +91,11 @@ const inputs = {
|
||||
'output-env-credentials': 'false',
|
||||
'output-credentials': 'true',
|
||||
},
|
||||
USE_EXISTING_CREDENTIALS_FALSE_INPUTS: {
|
||||
'aws-region': 'fake-region-1',
|
||||
'use-existing-credentials': 'false',
|
||||
'role-to-assume': 'arn:aws:iam::111111111111:role/MY-ROLE',
|
||||
},
|
||||
};
|
||||
|
||||
const envs = {
|
||||
|
||||
Reference in new issue
Block a user