* feat!: v3 release

Squashed commit of the following:

commit 9df144b3ae
Merge: 19d3f3a 131c7b6
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Aug 23 14:41:33 2023 -0700

    Merge remote-tracking branch 'origin' into vNext

commit 131c7b6fd1
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 22 03:12:24 2023 +0000

    chore: Bump jest from 29.6.2 to 29.6.3 (#786)

    Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.6.2 to 29.6.3.
    - [Release notes](https://github.com/jestjs/jest/releases)
    - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/jestjs/jest/commits/v29.6.3/packages/jest)

    ---
    updated-dependencies:
    - dependency-name: jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 6334b403eb
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 22 03:11:45 2023 +0000

    chore: Bump aws-sdk from 2.1436.0 to 2.1441.0 (#787)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1436.0 to 2.1441.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1436.0...v2.1441.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 19d3f3a169
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 20:13:39 2023 -0700

    chore: update readme and changelog

commit 4403e8d882
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 17:12:47 2023 -0700

    chore: update workflows

commit 0f1923f1a1
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 17:01:59 2023 -0700

    chore: update .github with current

commit 60a9bf1676
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 17:00:14 2023 -0700

    chore: update .github with current

commit d3464b25f8
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 16:58:01 2023 -0700

    chore: add examples to vNext branch

commit 7cd050ca4d
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 16:54:12 2023 -0700

    chore: update readme

commit 0e32a13775
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 16:19:17 2023 -0700

    chore: update readme

commit 2625b45d56
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 18 15:12:36 2023 -0700

    chore: update readme

commit 19eb4df27e
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Thu Aug 17 17:22:20 2023 -0700

    chore: update readme

commit 71ff793a0f
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Thu Aug 17 17:18:42 2023 -0700

    chore: update readme

commit a272f95336
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Aug 16 17:05:42 2023 -0700

    chore: update readme

commit 360ea313a7
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 15 03:33:37 2023 +0000

    chore: Bump aws-sdk from 2.1431.0 to 2.1436.0 (#783)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1431.0 to 2.1436.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1431.0...v2.1436.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit de93b00c9f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 15 03:32:58 2023 +0000

    chore: Bump eslint from 8.46.0 to 8.47.0 (#784)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.46.0 to 8.47.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.46.0...v8.47.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 4dd1aeed85
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 11 16:41:44 2023 -0700

    chore: remove unused dependency, fixing vulnerability

commit 7f4507af3c
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Aug 11 16:24:09 2023 -0700

    fix: maxRetry hit infinite loop with negative input

commit 746d33e7c1
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 8 03:23:17 2023 +0000

    chore: Bump aws-sdk from 2.1426.0 to 2.1431.0 (#782)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1426.0 to 2.1431.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1426.0...v2.1431.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 706fc9ae3d
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 1 03:41:00 2023 +0000

    chore: Bump eslint from 8.45.0 to 8.46.0 (#780)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.45.0 to 8.46.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.45.0...v8.46.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 9918371ad5
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 1 03:39:16 2023 +0000

    chore: Bump aws-sdk from 2.1421.0 to 2.1426.0 (#781)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1421.0 to 2.1426.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1421.0...v2.1426.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 345462ab9e
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 1 03:38:28 2023 +0000

    chore: Bump jest from 29.6.1 to 29.6.2 (#779)

    Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.6.1 to 29.6.2.
    - [Release notes](https://github.com/facebook/jest/releases)
    - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/jest/commits/v29.6.2/packages/jest)

    ---
    updated-dependencies:
    - dependency-name: jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 80a7a6c2a2
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jul 25 03:22:02 2023 +0000

    chore: Bump aws-sdk from 2.1416.0 to 2.1421.0 (#778)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1416.0 to 2.1421.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1416.0...v2.1421.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 385d7e1d64
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jul 18 03:25:33 2023 +0000

    chore: Bump aws-sdk from 2.1413.0 to 2.1416.0 (#774)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1413.0 to 2.1416.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1413.0...v2.1416.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 48560b5d49
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jul 18 03:24:46 2023 +0000

    chore: Bump eslint from 8.44.0 to 8.45.0 (#773)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.44.0 to 8.45.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.44.0...v8.45.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 35d8f9588b
Author: Shailja Khurana <117320115+khushail@users.noreply.github.com>
Date:   Fri Jul 14 15:14:02 2023 -0700

    added workflow for handling answerable discussions (#772)

commit 86df881b31
Author: Tom Keller <1083460+kellertk@users.noreply.github.com>
Date:   Wed Jul 12 14:51:43 2023 -0700

    chore: add link to CF template in README (#771)

commit a621db3279
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jul 11 03:16:22 2023 +0000

    chore: Bump jest from 29.5.0 to 29.6.1 (#768)

    Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.5.0 to 29.6.1.
    - [Release notes](https://github.com/facebook/jest/releases)
    - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/jest/commits/v29.6.1/packages/jest)

    ---
    updated-dependencies:
    - dependency-name: jest
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 90858a2e70
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jul 11 03:15:36 2023 +0000

    chore: Bump aws-sdk from 2.1410.0 to 2.1413.0 (#767)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1410.0 to 2.1413.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1410.0...v2.1413.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 228a9916ee
Author: Tom Keller <1083460+kellertk@users.noreply.github.com>
Date:   Fri Jul 7 16:49:10 2023 -0700

    Update README.md for OIDC changes (#764)

commit 65c2143642
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Thu Jul 6 15:19:05 2023 -0700

    chore: add final tests, add outputs to action.yml

commit 7b893ba14b
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Jul 5 18:55:04 2023 -0700

    feat: getIDToken retry, feat: special character in key retry

commit 3c981da079
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jul 4 03:30:19 2023 +0000

    chore: Bump eslint from 8.43.0 to 8.44.0 (#761)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.43.0 to 8.44.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.43.0...v8.44.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 222080786b
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jul 4 03:29:03 2023 +0000

    chore: Bump aws-sdk from 2.1405.0 to 2.1410.0 (#760)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1405.0 to 2.1410.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1405.0...v2.1410.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit aa2675f083
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jul 3 16:13:19 2023 -0700

    implement last changes for vNext

commit 256d740e71
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Jun 30 16:20:47 2023 -0700

    chore: remove unnecessary step in unit test job

commit cd5cd29d7f
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Jun 30 16:17:47 2023 -0700

    chore: declare eol in gitattributes

commit 7b90497500
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Jun 30 16:11:12 2023 -0700

    chore: disable auto crlf in unit tests

commit fb67439785
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Jun 30 15:48:15 2023 -0700

    fix boolean input

commit 2b32a8f2c6
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Jun 30 15:40:41 2023 -0700

    fix webIdentityTokenFile option, rearrange validation logic

commit 7526948ef9
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Thu Jun 29 17:29:11 2023 -0700

    chore: vnext unit tests (#758)

    * fix: unit tests

    * get unit tests running

commit 0270d0bcec
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Tue Jun 27 14:22:02 2023 -0700

    chore: update readme with new thumbprint (#755)

commit 4b8efb08db
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jun 27 03:58:21 2023 +0000

    chore: Bump aws-sdk from 2.1400.0 to 2.1405.0 (#754)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1400.0 to 2.1405.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1400.0...v2.1405.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit d26f2d03f8
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Jun 21 16:45:34 2023 -0700

    feat: role-chaining

commit 20f59875fe
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Jun 21 15:13:42 2023 -0700

    feat: optional policy inputs when assuming role

commit 10024331f6
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Jun 21 15:08:37 2023 -0700

    feat: optional policy inputs when assuming role

commit 2cee35f9a9
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Jun 21 14:51:50 2023 -0700

    feat: optional policy inputs when assuming role

commit 8aa25a5cb6
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Jun 21 14:50:04 2023 -0700

    feat: optional policy inputs when assuming role

commit e849bae717
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Tue Jun 20 18:02:34 2023 -0700

    chore: remove windows self-hosted runner

commit 8a5ae330dd
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Tue Jun 20 16:10:30 2023 -0700

    chore: expand integ tests

commit 819a6d1c74
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jun 20 03:58:58 2023 +0000

    chore: Bump eslint from 8.42.0 to 8.43.0 (#750)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.42.0 to 8.43.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.42.0...v8.43.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit e57babb541
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jun 20 03:58:19 2023 +0000

    chore: Bump aws-sdk from 2.1396.0 to 2.1400.0 (#749)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1396.0 to 2.1400.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1396.0...v2.1400.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit c613996f9a
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 18:38:44 2023 -0700

    chore: attempting to get to minimal integ test success

commit c13a9c8ef3
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 18:36:40 2023 -0700

    chore: attempting to get to minimal integ test success

commit b98e10c776
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 18:25:03 2023 -0700

    chore: set failing configuration on integ workflow matrix

commit 6d193465ae
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 16:32:19 2023 -0700

    chore: remove push workflow trigger

commit a8f18666db
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 16:29:33 2023 -0700

    chore: fix workflow file indentation

commit 7dec5a88ce
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 16:28:05 2023 -0700

    chore: update workflow to be able to trigger

commit 0a8178a52a
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 16:21:45 2023 -0700

    chore: update workflow to be able to trigger

commit 506b27277d
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Mon Jun 19 16:17:53 2023 -0700

    chore: update workflow to be able to trigger

commit 5fd3084fc3
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Wed Jun 14 15:02:32 2023 -0700

    chore: update changelog for release (#745)

commit d00f6c6f41
Author: Dimitar <dimitarshr@gmail.com>
Date:   Wed Jun 14 22:43:04 2023 +0100

    Allow inline session policies for assuming role (#739)

    * Allow to pass inline session policy as a parameter

    Update the action file

    Regenerate the dist/ content

    Add test

    * Fix typos

    * Fix stylistic error

    * Move the inline policy logic to allow assumeRole to use it as well; Update and add tests

    * Add an option for managed policies

    * Regenerate the dist/ files

    * Use multiline input for managed policies

    * Update readme

    * Update readme

    ---------

    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit ae734070a0
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Jun 13 04:55:26 2023 +0000

    chore: Update dist

commit 3d528c5f7d
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jun 13 04:54:37 2023 +0000

    chore: Bump aws-sdk from 2.1391.0 to 2.1396.0 (#744)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1391.0 to 2.1396.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1391.0...v2.1396.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit e7aae61719
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Jun 6 03:59:43 2023 +0000

    chore: Update dist

commit 979ee1f6f4
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jun 6 03:59:04 2023 +0000

    chore: Bump aws-sdk from 2.1386.0 to 2.1391.0 (#742)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1386.0 to 2.1391.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1386.0...v2.1391.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 184acc09ea
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jun 6 03:58:21 2023 +0000

    chore: Bump eslint from 8.41.0 to 8.42.0 (#741)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.41.0 to 8.42.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.41.0...v8.42.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 375a690dc0
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Wed May 31 14:43:39 2023 -0700

    chore: update changelog for v2.1.0 (#738)

    * chore: update changelog for v2.1.0

    * chore: update changelog for v2.1.0

    ---------

    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 8337ca3433
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Wed May 31 14:38:06 2023 -0700

    update time to ancient (#729)

    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 5727f247b6
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue May 30 03:59:04 2023 +0000

    chore: Update dist

commit de3676366f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 30 03:58:14 2023 +0000

    chore: Bump aws-sdk from 2.1382.0 to 2.1386.0 (#736)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1382.0 to 2.1386.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1382.0...v2.1386.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 81fba9ea6a
Author: escudero89 <532828+escudero89@users.noreply.github.com>
Date:   Fri May 26 00:10:40 2023 +0200

    Update README.md with v2 instead of v1 (#733)

commit 8815b6557c
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 23 03:59:25 2023 +0000

    chore: Bump eslint from 8.40.0 to 8.41.0 (#732)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.40.0 to 8.41.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.40.0...v8.41.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 3d77523f10
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue May 23 03:58:44 2023 +0000

    chore: Update dist

commit 4eb7afece4
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 23 03:58:06 2023 +0000

    chore: Bump aws-sdk from 2.1378.0 to 2.1382.0 (#731)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1378.0 to 2.1382.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1378.0...v2.1382.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit d713a182c5
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue May 16 03:58:29 2023 +0000

    chore: Update dist

commit 1910078421
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 16 03:57:45 2023 +0000

    chore: Bump aws-sdk from 2.1374.0 to 2.1378.0 (#726)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1374.0 to 2.1378.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1374.0...v2.1378.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 580afbba80
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue May 9 03:59:53 2023 +0000

    chore: Update dist

commit 1daf2a1967
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 9 03:59:14 2023 +0000

    chore: Bump aws-sdk from 2.1369.0 to 2.1374.0 (#723)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1369.0 to 2.1374.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1369.0...v2.1374.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 76ad093bd5
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 9 03:57:57 2023 +0000

    chore: Bump eslint from 8.39.0 to 8.40.0 (#722)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.39.0 to 8.40.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.39.0...v8.40.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 6fbd316fd1
Author: Milo Hyson <siggimoo@users.noreply.github.com>
Date:   Fri May 5 18:27:52 2023 -0700

    Add role-chaining support (#688)

    * Add role-chaining support

    * fix version in readme

    * minor readme adjustment

    ---------

    Co-authored-by: Milo Hyson <mhyson@tunein.com>
    Co-authored-by: peterwoodworth <woodwoop@amazon.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 19f3a6d67f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 2 03:59:57 2023 +0000

    chore: Bump axios from 1.3.6 to 1.4.0 (#720)

    Bumps [axios](https://github.com/axios/axios) from 1.3.6 to 1.4.0.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.3.6...v1.4.0)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 96aac45bfc
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue May 2 03:58:25 2023 +0000

    chore: Update dist

commit 5e6a264592
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue May 2 03:57:46 2023 +0000

    chore: Bump aws-sdk from 2.1364.0 to 2.1369.0 (#719)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1364.0 to 2.1369.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1364.0...v2.1369.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 82ea2d2853
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Apr 25 04:01:50 2023 +0000

    chore: Bump axios from 1.3.5 to 1.3.6 (#716)

    Bumps [axios](https://github.com/axios/axios) from 1.3.5 to 1.3.6.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.3.5...v1.3.6)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit e0213bba7a
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Apr 25 03:59:31 2023 +0000

    chore: Update dist

commit 2beda2fb7c
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Apr 25 03:58:42 2023 +0000

    chore: Bump aws-sdk from 2.1360.0 to 2.1364.0 (#715)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1360.0 to 2.1364.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1360.0...v2.1364.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 0afc5d47c7
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Apr 25 03:57:35 2023 +0000

    chore: Bump eslint from 8.38.0 to 8.39.0 (#714)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.39.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.38.0...v8.39.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 31bd3ae2db
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Apr 18 03:59:23 2023 +0000

    chore: Update dist

commit 46648cb772
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Apr 18 03:58:27 2023 +0000

    chore: Bump aws-sdk from 2.1354.0 to 2.1360.0 (#713)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1354.0 to 2.1360.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1354.0...v2.1360.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 60a5c129d0
Author: Jonathan Lang <jonathan.lang@tngtech.com>
Date:   Wed Apr 12 00:46:13 2023 +0200

    Fix Typo in README.md (#707)

commit f576cc9d9b
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Apr 11 04:00:40 2023 +0000

    chore: Bump axios from 1.3.4 to 1.3.5 (#712)

    Bumps [axios](https://github.com/axios/axios) from 1.3.4 to 1.3.5.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.3.4...v1.3.5)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 9c17403327
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Apr 11 03:59:38 2023 +0000

    chore: Bump eslint from 8.35.0 to 8.38.0 (#711)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.35.0 to 8.38.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.35.0...v8.38.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 9c1a10e79c
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Apr 11 03:58:34 2023 +0000

    chore: Update dist

commit 9192d9ecb4
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Apr 11 03:57:48 2023 +0000

    chore: Bump aws-sdk from 2.1329.0 to 2.1354.0 (#710)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1329.0 to 2.1354.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1329.0...v2.1354.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 26227bfa7d
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Mar 22 16:52:04 2023 -0700

    chore: adjust cleanup build target

commit 0d90ddd1f2
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Mar 22 16:51:12 2023 -0700

    chore: adjust cleanup build again

commit fc80f28dba
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Mar 22 16:37:58 2023 -0700

    chore: adjust cleanup build and some imports

commit 3088522ce8
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Mar 22 16:32:37 2023 -0700

    chore: build and set cleanup file

commit 0181111f1d
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Mar 22 15:12:07 2023 -0700

    chore: build action

commit b723544115
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Mar 22 15:08:39 2023 -0700

    fix: branch name is not sanitized, slight refactor

commit 0e613a0980
Author: Adrian Środoń <adriansrodon@tuta.io>
Date:   Mon Mar 20 23:24:34 2023 +0100

    docs: add note about case sensivity to CloudFormation template (#696)

    * docs: add note about case sensivity to CloudFormation template

    * Move case-sensivity notes to CloudFormation template

commit 12d07d4800
Author: Tom Keller <kellertk@amazon.com>
Date:   Fri Mar 17 17:46:57 2023 -0700

    feat: update tests

commit f6fdf0cdbd
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Wed Mar 15 14:12:01 2023 -0700

    feat: aws region is optional, use global sts endpoint when not set

commit cb1361ade3
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Mon Mar 13 14:50:02 2023 -0700

    docs: clarify safety of version migration in readme (#692)

commit f9f25e69f5
Author: peterwoodworth <woodwoop@amazon.com>
Date:   Fri Mar 10 14:35:59 2023 -0800

    refactor, add new major version features and proxy

commit 83f0e97b2f
Merge: 7fc5f08 f86a0c3
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Tue Mar 7 17:36:19 2023 -0800

    Merge pull request #687 from fabienfoerster/patch-2

    Update README examples to use v2

commit f86a0c30a5
Author: Fabien Foerster <f.foerster@bevolta.com>
Date:   Tue Mar 7 21:29:17 2023 +0100

    Update README examples to use v2

commit 7fc5f080e5
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Mar 7 01:02:37 2023 +0000

    chore: Update dist

commit ffc08eae73
Author: Tom Keller <kellertk@amazon.com>
Date:   Mon Mar 6 17:01:09 2023 -0800

    Rename master to main

commit e1e17a757e
Author: Tom Keller <1083460+kellertk@users.noreply.github.com>
Date:   Mon Mar 6 16:35:37 2023 -0800

    Version 2 release (#685)

    * Update README for v2

    * Remove codeql analysis

    * Version bump checkout action

    * Tweak closed issue message

    * Changes for v2 release

    * Adjust action name

    * Update CHANGELOG

    * Update action to use node 16

    * Update versions

    * Typo

commit bab55d3830
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 28 04:09:09 2023 +0000

    chore: Bump axios from 1.3.3 to 1.3.4 (#679)

    Bumps [axios](https://github.com/axios/axios) from 1.3.3 to 1.3.4.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.3.3...v1.3.4)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 07b737a14f
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Feb 28 04:00:33 2023 +0000

    chore: Update dist

commit 26e4efa71f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 28 03:59:47 2023 +0000

    chore: Bump aws-sdk from 2.1320.0 to 2.1324.0 (#677)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1320.0 to 2.1324.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1320.0...v2.1324.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 7e0ecf0346
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 28 03:58:55 2023 +0000

    chore: Bump eslint from 8.34.0 to 8.35.0 (#675)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.34.0 to 8.35.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.34.0...v8.35.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 567d4149d6
Merge: 32eb1b4 85ec61b
Author: Peter Woodworth <44349620+peterwoodworth@users.noreply.github.com>
Date:   Tue Feb 21 18:49:30 2023 -0800

    Merge pull request #563 from russau/docs/readme-role-update

    Minor: include a role condition test for AUD in sample CFN template

commit 32eb1b4a66
Author: Jackson Welsh <me@jacksonwel.sh>
Date:   Tue Feb 21 20:36:17 2023 -0600

    feat: document mask-aws-account-id input (#606)

    Closes aws-actions#304

    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 6ca2577643
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Wed Feb 22 02:34:29 2023 +0000

    chore: Update dist

commit f1de076135
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Feb 22 02:33:40 2023 +0000

    chore: Bump aws-sdk from 2.1273.0 to 2.1320.0 (#666)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1273.0 to 2.1320.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1273.0...v2.1320.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 077fd1fc8f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 21 04:00:04 2023 +0000

    chore: Bump jest from 29.4.2 to 29.4.3 (#663)

    Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.4.2 to 29.4.3.
    - [Release notes](https://github.com/facebook/jest/releases)
    - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/jest/commits/v29.4.3/packages/jest)

    ---
    updated-dependencies:
    - dependency-name: jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 1416c559c0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 14 04:08:31 2023 +0000

    chore: Bump eslint from 8.33.0 to 8.34.0 (#653)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.33.0 to 8.34.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.34.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit c3f9f9cde3
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 14 04:02:34 2023 +0000

    chore: Bump jest from 29.4.1 to 29.4.2 (#655)

    Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.4.1 to 29.4.2.
    - [Release notes](https://github.com/facebook/jest/releases)
    - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/jest/commits/v29.4.2/packages/jest)

    ---
    updated-dependencies:
    - dependency-name: jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 1a61b71d4c
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 14 04:00:54 2023 +0000

    chore: Bump axios from 1.3.2 to 1.3.3 (#651)

    Bumps [axios](https://github.com/axios/axios) from 1.3.2 to 1.3.3.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.3.2...v1.3.3)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 07d5781915
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Feb 7 03:03:40 2023 +0000

    chore: Bump axios from 1.2.6 to 1.3.2 (#648)

    Bumps [axios](https://github.com/axios/axios) from 1.2.6 to 1.3.2.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.2.6...v1.3.2)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 5ed46d9d6a
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 31 03:10:42 2023 +0000

    chore: Bump eslint from 8.32.0 to 8.33.0 (#645)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.32.0 to 8.33.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.32.0...v8.33.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 0d34112acb
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 31 03:06:27 2023 +0000

    chore: Bump jest from 29.3.1 to 29.4.1 (#643)

    Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.3.1 to 29.4.1.
    - [Release notes](https://github.com/facebook/jest/releases)
    - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/jest/commits/v29.4.1/packages/jest)

    ---
    updated-dependencies:
    - dependency-name: jest
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit fa45146389
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 31 03:05:11 2023 +0000

    chore: Bump @vercel/ncc from 0.36.0 to 0.36.1 (#640)

    Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.36.0 to 0.36.1.
    - [Release notes](https://github.com/vercel/ncc/releases)
    - [Commits](https://github.com/vercel/ncc/compare/0.36.0...0.36.1)

    ---
    updated-dependencies:
    - dependency-name: "@vercel/ncc"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit a075dc0410
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 31 03:03:44 2023 +0000

    chore: Bump axios from 1.2.3 to 1.2.6 (#639)

    Bumps [axios](https://github.com/axios/axios) from 1.2.3 to 1.2.6.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.2.3...v1.2.6)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 3e21ee4ae7
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 24 03:04:28 2023 +0000

    chore: Bump axios from 1.2.2 to 1.2.3 (#630)

    Bumps [axios](https://github.com/axios/axios) from 1.2.2 to 1.2.3.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/1.2.2...v1.2.3)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 491cd39cf6
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 17 03:05:35 2023 +0000

    chore: Bump eslint from 8.31.0 to 8.32.0 (#625)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.31.0 to 8.32.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.31.0...v8.32.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 3654529dc6
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 3 03:06:41 2023 +0000

    chore: Bump json5 from 2.2.1 to 2.2.3 (#620)

    Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
    - [Release notes](https://github.com/json5/json5/releases)
    - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

    ---
    updated-dependencies:
    - dependency-name: json5
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit aa5a031041
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 3 03:04:46 2023 +0000

    chore: Bump eslint from 8.30.0 to 8.31.0 (#619)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.30.0 to 8.31.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.30.0...v8.31.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 55443b3d5b
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jan 3 03:03:28 2023 +0000

    chore: Bump axios from 1.2.1 to 1.2.2 (#616)

    Bumps [axios](https://github.com/axios/axios) from 1.2.1 to 1.2.2.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](https://github.com/axios/axios/compare/v1.2.1...1.2.2)

    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 48f0cb7848
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Dec 20 03:04:13 2022 +0000

    chore: Bump eslint from 8.29.0 to 8.30.0 (#610)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.29.0 to 8.30.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/eslint/eslint/compare/v8.29.0...v8.30.0)

    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 90d1b38cb5
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Dec 13 03:05:43 2022 +0000

    chore: Update dist

commit 422c797285
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Dec 13 03:04:51 2022 +0000

    chore: Bump aws-sdk from 2.1268.0 to 2.1273.0 (#603)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1268.0 to 2.1273.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1268.0...v2.1273.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 4b942d82b0
Author: GitHub Actions <github-aws-sdk-osds-automation@amazon.com>
Date:   Tue Dec 6 03:10:45 2022 +0000

    chore: Update dist

commit 7437ed192e
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Dec 6 03:09:51 2022 +0000

    chore: Bump aws-sdk from 2.1262.0 to 2.1268.0 (#596)

    Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1262.0 to 2.1268.0.
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1262.0...v2.1268.0)

    ---
    updated-dependencies:
    - dependency-name: aws-sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit ed4ba44f95
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Dec 6 03:08:24 2022 +0000

    chore: Bump @vercel/ncc from 0.34.0 to 0.36.0 (#594)

    Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.34.0 to 0.36.0.
    - [Release notes](https://github.com/vercel/ncc/releases)
    - [Commits](https://github.com/vercel/ncc/compare/0.34.0...0.36.0)

    ---
    updated-dependencies:
    - dependency-name: "@vercel/ncc"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

commit 10dc6d923a
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Dec 6 03:05:08 2022 +0000

    chore: Bump axios from 1.2.0 to 1.2.1 (#590)

    Bumps [axios](https://github.…

* chore: tweak readme for v3
This commit is contained in:
Tom Keller
2023-08-23 16:35:15 -07:00
committed by GitHub
parent 131c7b6fd1
commit ef93a73b13
47 changed files with 66665 additions and 48076 deletions
+70
View File
@@ -0,0 +1,70 @@
import { info } from '@actions/core';
import { STSClient } from '@aws-sdk/client-sts';
import { NodeHttpHandler } from '@aws-sdk/node-http-handler';
import { HttpsProxyAgent } from 'https-proxy-agent';
import { errorMessage } from './helpers';
const USER_AGENT = 'configure-aws-credentials-for-github-actions';
export interface CredentialsClientProps {
region?: string;
proxyServer?: string;
}
export class CredentialsClient {
public region?: string;
private _stsClient?: STSClient;
private readonly requestHandler?: NodeHttpHandler;
constructor(props: CredentialsClientProps) {
this.region = props.region;
if (props.proxyServer) {
info('Configuring proxy handler for STS client');
const handler = new HttpsProxyAgent(props.proxyServer);
this.requestHandler = new NodeHttpHandler({
httpAgent: handler,
httpsAgent: handler,
});
}
}
public get stsClient(): STSClient {
if (!this._stsClient) {
this._stsClient = new STSClient({
region: this.region,
customUserAgent: USER_AGENT,
requestHandler: this.requestHandler ? this.requestHandler : undefined,
});
}
return this._stsClient;
}
public async validateCredentials(expectedAccessKeyId?: string, roleChaining?: boolean) {
let credentials;
try {
credentials = await this.loadCredentials();
if (!credentials.accessKeyId) {
throw new Error('Access key ID empty after loading credentials');
}
} catch (error) {
throw new Error(`Credentials could not be loaded, please check your action inputs: ${errorMessage(error)}`);
}
if (!roleChaining) {
const actualAccessKeyId = credentials.accessKeyId;
if (expectedAccessKeyId && expectedAccessKeyId !== actualAccessKeyId) {
throw new Error(
'Unexpected failure: Credentials loaded by the SDK do not match the access key ID configured by the action'
);
}
}
}
private async loadCredentials() {
const client = new STSClient({
requestHandler: this.requestHandler ? this.requestHandler : undefined,
});
return client.config.credentials();
}
}
+169
View File
@@ -0,0 +1,169 @@
import assert from 'assert';
import fs from 'fs';
import path from 'path';
import * as core from '@actions/core';
import type { AssumeRoleCommandInput, STSClient, Tag } from '@aws-sdk/client-sts';
import { AssumeRoleCommand, AssumeRoleWithWebIdentityCommand } from '@aws-sdk/client-sts';
import type { CredentialsClient } from './CredentialsClient';
import { errorMessage, isDefined, sanitizeGitHubVariables, verifyKeys } from './helpers';
async function assumeRoleWithOIDC(params: AssumeRoleCommandInput, client: STSClient, webIdentityToken: string) {
delete params.Tags;
core.info('Assuming role with OIDC');
try {
const creds = await client.send(
new AssumeRoleWithWebIdentityCommand({
...params,
WebIdentityToken: webIdentityToken,
})
);
verifyKeys(creds.Credentials);
return creds;
} catch (error) {
throw new Error(`Could not assume role with OIDC: ${errorMessage(error)}`);
}
}
async function assumeRoleWithWebIdentityTokenFile(
params: AssumeRoleCommandInput,
client: STSClient,
webIdentityTokenFile: string,
workspace: string
) {
core.debug(
'webIdentityTokenFile provided. Will call sts:AssumeRoleWithWebIdentity and take session tags from token contents.'
);
const webIdentityTokenFilePath = path.isAbsolute(webIdentityTokenFile)
? webIdentityTokenFile
: path.join(workspace, webIdentityTokenFile);
if (!fs.existsSync(webIdentityTokenFilePath)) {
throw new Error(`Web identity token file does not exist: ${webIdentityTokenFilePath}`);
}
core.info('Assuming role with web identity token file');
try {
const webIdentityToken = fs.readFileSync(webIdentityTokenFilePath, 'utf8');
delete params.Tags;
const creds = await client.send(
new AssumeRoleWithWebIdentityCommand({
...params,
WebIdentityToken: webIdentityToken,
})
);
verifyKeys(creds.Credentials);
return creds;
} catch (error) {
throw new Error(`Could not assume role with web identity token file: ${errorMessage(error)}`);
}
}
async function assumeRoleWithCredentials(params: AssumeRoleCommandInput, client: STSClient) {
core.info('Assuming role with user credentials');
try {
const creds = await client.send(new AssumeRoleCommand({ ...params }));
verifyKeys(creds.Credentials);
return creds;
} catch (error) {
throw new Error(`Could not assume role with user credentials: ${errorMessage(error)}`);
}
}
export interface assumeRoleParams {
credentialsClient: CredentialsClient;
roleToAssume: string;
roleDuration: number;
roleSessionName: string;
roleSkipSessionTagging?: boolean;
sourceAccountId?: string;
roleExternalId?: string;
webIdentityTokenFile?: string;
webIdentityToken?: string;
inlineSessionPolicy?: string;
managedSessionPolicies?: any[];
}
export async function assumeRole(params: assumeRoleParams) {
const {
credentialsClient,
sourceAccountId,
roleToAssume,
roleExternalId,
roleDuration,
roleSessionName,
roleSkipSessionTagging,
webIdentityTokenFile,
webIdentityToken,
inlineSessionPolicy,
managedSessionPolicies,
} = { ...params };
// Load GitHub environment variables
const { GITHUB_REPOSITORY, GITHUB_WORKFLOW, GITHUB_ACTION, GITHUB_ACTOR, GITHUB_SHA, GITHUB_WORKSPACE } = process.env;
if (!GITHUB_REPOSITORY || !GITHUB_WORKFLOW || !GITHUB_ACTION || !GITHUB_ACTOR || !GITHUB_SHA || !GITHUB_WORKSPACE) {
throw new Error('Missing required environment variables. Are you running in GitHub Actions?');
}
// Load role session tags
const tagArray: Tag[] = [
{ Key: 'GitHub', Value: 'Actions' },
{ Key: 'Repository', Value: GITHUB_REPOSITORY },
{ Key: 'Workflow', Value: sanitizeGitHubVariables(GITHUB_WORKFLOW) },
{ Key: 'Action', Value: GITHUB_ACTION },
{ Key: 'Actor', Value: sanitizeGitHubVariables(GITHUB_ACTOR) },
{ Key: 'Commit', Value: GITHUB_SHA },
];
if (process.env['GITHUB_REF']) {
tagArray.push({ Key: 'Branch', Value: sanitizeGitHubVariables(process.env['GITHUB_REF']) });
}
const tags = roleSkipSessionTagging ? undefined : tagArray;
if (!tags) {
core.debug('Role session tagging has been skipped.');
} else {
core.debug(`${tags.length} role session tags are being used.`);
}
// Calculate role ARN from name and account ID (currently only supports `aws` partition)
let roleArn = roleToAssume;
if (!roleArn.startsWith('arn:aws')) {
assert(
isDefined(sourceAccountId),
'Source Account ID is needed if the Role Name is provided and not the Role Arn.'
);
roleArn = `arn:aws:iam::${sourceAccountId}:role/${roleArn}`;
}
// Ready common parameters to assume role
const commonAssumeRoleParams: AssumeRoleCommandInput = {
RoleArn: roleArn,
RoleSessionName: roleSessionName,
DurationSeconds: roleDuration,
Tags: tags ? tags : undefined,
ExternalId: roleExternalId ? roleExternalId : undefined,
Policy: inlineSessionPolicy ? inlineSessionPolicy : undefined,
PolicyArns: managedSessionPolicies?.length ? managedSessionPolicies : undefined,
};
const keys = Object.keys(commonAssumeRoleParams) as Array<keyof typeof commonAssumeRoleParams>;
keys.forEach((k) => commonAssumeRoleParams[k] === undefined && delete commonAssumeRoleParams[k]);
// Instantiate STS client
const stsClient = credentialsClient.stsClient;
// Assume role using one of three methods
switch (true) {
case !!webIdentityToken: {
return assumeRoleWithOIDC(commonAssumeRoleParams, stsClient, webIdentityToken!);
}
case !!webIdentityTokenFile: {
return assumeRoleWithWebIdentityTokenFile(
commonAssumeRoleParams,
stsClient,
webIdentityTokenFile!,
GITHUB_WORKSPACE
);
}
default: {
return assumeRoleWithCredentials(commonAssumeRoleParams, stsClient);
}
}
}
+37
View File
@@ -0,0 +1,37 @@
import * as core from '@actions/core';
import { errorMessage } from '../helpers';
/**
* When the GitHub Actions job is done, clean up any environment variables that
* may have been set by the configure-aws-credentials steps in the job.
*
* Environment variables are not intended to be shared across different jobs in
* the same GitHub Actions workflow: GitHub Actions documentation states that
* each job runs in a fresh instance. However, doing our own cleanup will
* give us additional assurance that these environment variables are not shared
* with any other jobs.
*/
export function cleanup() {
try {
// The GitHub Actions toolkit does not have an option to completely unset
// environment variables, so we overwrite the current value with an empty
// string. The AWS CLI and AWS SDKs will behave correctly: they treat an
// empty string value as if the environment variable does not exist.
core.exportVariable('AWS_ACCESS_KEY_ID', '');
core.exportVariable('AWS_SECRET_ACCESS_KEY', '');
core.exportVariable('AWS_SESSION_TOKEN', '');
core.exportVariable('AWS_DEFAULT_REGION', '');
core.exportVariable('AWS_REGION', '');
} catch (error) {
core.setFailed(errorMessage(error));
}
}
/* c8 ignore start */
if (require.main === module) {
try {
cleanup();
} catch (error) {
core.setFailed(errorMessage(error));
}
}
+142
View File
@@ -0,0 +1,142 @@
import * as core from '@actions/core';
import type { Credentials } from '@aws-sdk/client-sts';
import { GetCallerIdentityCommand } from '@aws-sdk/client-sts';
import type { CredentialsClient } from './CredentialsClient';
const MAX_TAG_VALUE_LENGTH = 256;
const SANITIZATION_CHARACTER = '_';
const SPECIAL_CHARS_REGEX = /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]+/;
// Configure the AWS CLI and AWS SDKs using environment variables and set them as secrets.
// Setting the credentials as secrets masks them in Github Actions logs
export function exportCredentials(creds?: Partial<Credentials>, outputCredentials?: boolean) {
if (creds?.AccessKeyId) {
core.setSecret(creds.AccessKeyId);
core.exportVariable('AWS_ACCESS_KEY_ID', creds.AccessKeyId);
}
if (creds?.SecretAccessKey) {
core.setSecret(creds.SecretAccessKey);
core.exportVariable('AWS_SECRET_ACCESS_KEY', creds.SecretAccessKey);
}
if (creds?.SessionToken) {
core.setSecret(creds.SessionToken);
core.exportVariable('AWS_SESSION_TOKEN', creds.SessionToken);
} else if (process.env['AWS_SESSION_TOKEN']) {
// clear session token from previous credentials action
core.exportVariable('AWS_SESSION_TOKEN', '');
}
if (outputCredentials) {
if (creds?.AccessKeyId) {
core.setOutput('aws-access-key-id', creds.AccessKeyId);
}
if (creds?.SecretAccessKey) {
core.setOutput('aws-secret-access-key', creds.SecretAccessKey);
}
if (creds?.SessionToken) {
core.setOutput('aws-session-token', creds.SessionToken);
}
}
}
export function unsetCredentials() {
core.exportVariable('AWS_ACCESS_KEY_ID', '');
core.exportVariable('AWS_SECRET_ACCESS_KEY', '');
core.exportVariable('AWS_SESSION_TOKEN', '');
core.exportVariable('AWS_REGION', '');
core.exportVariable('AWS_DEFAULT_REGION', '');
}
export function exportRegion(region: string) {
core.exportVariable('AWS_DEFAULT_REGION', region);
core.exportVariable('AWS_REGION', region);
}
// Obtains account ID from STS Client and sets it as output
export async function exportAccountId(credentialsClient: CredentialsClient, maskAccountId?: boolean) {
const client = credentialsClient.stsClient;
const identity = await client.send(new GetCallerIdentityCommand({}));
const accountId = identity.Account;
if (!accountId) {
throw new Error('Could not get Account ID from STS. Did you set credentials?');
}
if (maskAccountId) {
core.setSecret(accountId);
}
core.setOutput('aws-account-id', accountId);
return accountId;
}
// Tags have a more restrictive set of acceptable characters than GitHub environment variables can.
// This replaces anything not conforming to the tag restrictions by inverting the regular expression.
// See the AWS documentation for constraint specifics https://docs.aws.amazon.com/STS/latest/APIReference/API_Tag.html.
export function sanitizeGitHubVariables(name: string) {
const nameWithoutSpecialCharacters = name.replace(/[^\p{L}\p{Z}\p{N}_.:/=+\-@]/gu, SANITIZATION_CHARACTER);
const nameTruncated = nameWithoutSpecialCharacters.slice(0, MAX_TAG_VALUE_LENGTH);
return nameTruncated;
}
export async function defaultSleep(ms: number) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
let sleep = defaultSleep;
export function withsleep(s: typeof sleep) {
sleep = s;
}
export function reset() {
sleep = defaultSleep;
}
export function verifyKeys(creds: Partial<Credentials> | undefined) {
if (!creds) {
return;
}
if (creds.AccessKeyId) {
if (SPECIAL_CHARS_REGEX.test(creds.AccessKeyId)) {
throw new Error('AccessKeyId contains special characters.');
}
}
if (creds.SecretAccessKey) {
if (SPECIAL_CHARS_REGEX.test(creds.SecretAccessKey)) {
throw new Error('SecretAccessKey contains special characters.');
}
}
}
// Retries the promise with exponential backoff if the error isRetryable up to maxRetries time.
export async function retryAndBackoff<T>(
fn: () => Promise<T>,
isRetryable: boolean,
maxRetries = 12,
retries = 0,
base = 50
): Promise<T> {
try {
return await fn();
} catch (err) {
if (!isRetryable) {
throw err;
}
// It's retryable, so sleep and retry.
await sleep(Math.random() * (Math.pow(2, retries) * base));
retries += 1;
if (retries >= maxRetries) {
throw err;
}
return await retryAndBackoff(fn, isRetryable, maxRetries, retries, base);
}
}
/* c8 ignore start */
export function errorMessage(error: unknown) {
return error instanceof Error ? error.message : String(error);
}
export function isDefined<T>(i: T | undefined | null): i is T {
return i !== undefined && i !== null;
}
/* c8 ignore stop */
+182
View File
@@ -0,0 +1,182 @@
import * as core from '@actions/core';
import { assumeRole } from './assumeRole';
import { CredentialsClient } from './CredentialsClient';
import {
errorMessage,
retryAndBackoff,
exportRegion,
exportCredentials,
exportAccountId,
unsetCredentials,
} from './helpers';
const DEFAULT_ROLE_DURATION = 3600; // One hour (seconds)
const ROLE_SESSION_NAME = 'GitHubActions';
const REGION_REGEX = /^[a-z0-9-]+$/g;
export async function run() {
try {
// Get inputs
const AccessKeyId = core.getInput('aws-access-key-id', { required: false });
const SecretAccessKey = core.getInput('aws-secret-access-key', { required: false });
const sessionTokenInput = core.getInput('aws-session-token', { required: false });
const SessionToken = sessionTokenInput === '' ? undefined : sessionTokenInput;
const region = core.getInput('aws-region', { required: true });
const roleToAssume = core.getInput('role-to-assume', { required: false });
const audience = core.getInput('audience', { required: false });
const maskAccountIdInput = core.getInput('mask-aws-account-id', { required: false }) || 'false';
const maskAccountId = maskAccountIdInput.toLowerCase() === 'true';
const roleExternalId = core.getInput('role-external-id', { required: false });
const webIdentityTokenFile = core.getInput('web-identity-token-file', { required: false });
const roleDuration = parseInt(core.getInput('role-duration-seconds', { required: false })) || DEFAULT_ROLE_DURATION;
const roleSessionName = core.getInput('role-session-name', { required: false }) || ROLE_SESSION_NAME;
const roleSkipSessionTaggingInput = core.getInput('role-skip-session-tagging', { required: false }) || 'false';
const roleSkipSessionTagging = roleSkipSessionTaggingInput.toLowerCase() === 'true';
const proxyServer = core.getInput('http-proxy', { required: false });
const inlineSessionPolicy = core.getInput('inline-session-policy', { required: false });
const managedSessionPoliciesInput = core.getMultilineInput('managed-session-policies', { required: false });
const managedSessionPolicies: any[] = [];
const roleChainingInput = core.getInput('role-chaining', { required: false }) || 'false';
const roleChaining = roleChainingInput.toLowerCase() === 'true';
const outputCredentialsInput = core.getInput('output-credentials', { required: false }) || 'false';
const outputCredentials = outputCredentialsInput.toLowerCase() === 'true';
const unsetCurrentCredentialsInput = core.getInput('unset-current-credentials', { required: false }) || 'false';
const unsetCurrentCredentials = unsetCurrentCredentialsInput.toLowerCase() === 'true';
const disableRetryInput = core.getInput('disable-retry', { required: false }) || 'false';
const disableRetry = disableRetryInput.toLowerCase() === 'true';
let maxRetries = parseInt(core.getInput('retry-max-attempts', { required: false })) || 12;
if (maxRetries < 1) {
maxRetries = 1;
}
for (const managedSessionPolicy of managedSessionPoliciesInput) {
managedSessionPolicies.push({ arn: managedSessionPolicy });
}
// Logic to decide whether to attempt to use OIDC or not
const useGitHubOIDCProvider = () => {
// The `ACTIONS_ID_TOKEN_REQUEST_TOKEN` environment variable is set when the `id-token` permission is granted.
// This is necessary to authenticate with OIDC, but not strictly set just for OIDC. If it is not set and all other
// checks pass, it is likely but not guaranteed that the user needs but lacks this permission in their workflow.
// So, we will log a warning when it is the only piece absent
if (
!!roleToAssume &&
!webIdentityTokenFile &&
!AccessKeyId &&
!process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'] &&
!roleChaining
) {
core.info(
'It looks like you might be trying to authenticate with OIDC. Did you mean to set the `id-token` permission?'
);
}
return (
!!roleToAssume &&
!!process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'] &&
!AccessKeyId &&
!webIdentityTokenFile &&
!roleChaining
);
};
if (unsetCurrentCredentials) {
unsetCredentials();
}
if (!region.match(REGION_REGEX)) {
throw new Error(`Region is not valid: ${region}`);
}
exportRegion(region);
// Instantiate credentials client
const credentialsClient = new CredentialsClient({ region, proxyServer });
let sourceAccountId: string;
let webIdentityToken: string;
// If OIDC is being used, generate token
// Else, export credentials provided as input
if (useGitHubOIDCProvider()) {
try {
webIdentityToken = await retryAndBackoff(
async () => {
return core.getIDToken(audience);
},
!disableRetry,
maxRetries
);
} catch (error) {
throw new Error(`getIDToken call failed: ${errorMessage(error)}`);
}
} else if (AccessKeyId) {
if (!SecretAccessKey) {
throw new Error("'aws-secret-access-key' must be provided if 'aws-access-key-id' is provided");
}
// The STS client for calling AssumeRole pulls creds from the environment.
// Plus, in the assume role case, if the AssumeRole call fails, we want
// the source credentials to already be masked as secrets
// in any error messages.
exportCredentials({ AccessKeyId, SecretAccessKey, SessionToken });
} else if (!webIdentityTokenFile && !roleChaining) {
throw new Error('Could not determine how to assume credentials. Please check your inputs and try again.');
}
if (AccessKeyId || roleChaining) {
// Validate that the SDK can actually pick up credentials.
// This validates cases where this action is using existing environment credentials,
// and cases where the user intended to provide input credentials but the secrets inputs resolved to empty strings.
await credentialsClient.validateCredentials(AccessKeyId, roleChaining);
sourceAccountId = await exportAccountId(credentialsClient, maskAccountId);
}
// Get role credentials if configured to do so
if (roleToAssume) {
const roleCredentials = await retryAndBackoff(
async () => {
return assumeRole({
credentialsClient,
sourceAccountId,
roleToAssume,
roleExternalId,
roleDuration,
roleSessionName,
roleSkipSessionTagging,
webIdentityTokenFile,
webIdentityToken,
inlineSessionPolicy,
managedSessionPolicies,
});
},
!disableRetry,
maxRetries
);
core.info(`Authenticated as assumedRoleId ${roleCredentials.AssumedRoleUser!.AssumedRoleId!}`);
exportCredentials(roleCredentials.Credentials, outputCredentials);
// We need to validate the credentials in 2 of our use-cases
// First: self-hosted runners. If the GITHUB_ACTIONS environment variable
// is set to `true` then we are NOT in a self-hosted runner.
// Second: Customer provided credentials manually (IAM User keys stored in GH Secrets)
if (!process.env['GITHUB_ACTIONS'] || AccessKeyId) {
await credentialsClient.validateCredentials(roleCredentials.Credentials?.AccessKeyId);
}
await exportAccountId(credentialsClient, maskAccountId);
} else {
core.info('Proceeding with IAM user credentials');
}
} catch (error) {
core.setFailed(errorMessage(error));
const showStackTrace = process.env['SHOW_STACK_TRACE'];
if (showStackTrace === 'true') {
throw error;
}
}
}
/* c8 ignore start */
if (require.main === module) {
(async () => {
await run();
})().catch((error) => {
core.setFailed(errorMessage(error));
});
}