Compare commits

...

17 Commits

Author SHA1 Message Date
Release Automation 13d241b293 chore(release): 1.5.10 2021-06-01 05:34:40 +00:00
dependabot[bot] 230d25f14e chore: Bump jest from 27.0.1 to 27.0.3 (#217)
Bumps [jest](https://github.com/facebook/jest) from 27.0.1 to 27.0.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.0.1...v27.0.3)

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>
2021-06-01 05:10:18 +00:00
GitHub Actions 65b54d1a99 chore: Update dist 2021-06-01 05:09:07 +00:00
dependabot[bot] ef2b041797 chore: Bump aws-sdk from 2.916.0 to 2.918.0 (#216)
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.916.0 to 2.918.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.916.0...v2.918.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 05:08:39 +00:00
dependabot[bot] e1cbb915a6 chore: Bump jest from 26.6.3 to 27.0.1 (#215)
Bumps [jest](https://github.com/facebook/jest) from 26.6.3 to 27.0.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.6.3...v27.0.1)

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>
2021-05-27 17:07:20 +00:00
GitHub Actions 7c6941c992 chore: Update dist 2021-05-27 17:05:33 +00:00
dependabot[bot] 0af073e722 chore: Bump aws-sdk from 2.913.0 to 2.916.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.913.0 to 2.916.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.913.0...v2.916.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 10:04:56 -07:00
GitHub Actions 47603571fa chore: Update dist 2021-05-25 05:05:25 +00:00
dependabot[bot] 819cc639a4 chore: Bump aws-sdk from 2.908.0 to 2.913.0 (#212)
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.908.0 to 2.913.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.908.0...v2.913.0)

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>
2021-05-25 05:04:54 +00:00
GitHub Actions 9a884abe4a chore: Update dist 2021-05-25 05:03:52 +00:00
dependabot[bot] 8ad8d14cff chore: Bump eslint from 7.26.0 to 7.27.0 (#211)
Bumps [eslint](https://github.com/eslint/eslint) from 7.26.0 to 7.27.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.26.0...v7.27.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 05:03:12 +00:00
dependabot[bot] 55f5493fd1 chore: Bump aws-sdk from 2.904.0 to 2.908.0 (#210)
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.904.0 to 2.908.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.904.0...v2.908.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 05:02:30 +00:00
GitHub Actions 30d0c4e632 chore: Update dist 2021-05-11 19:01:25 +00:00
Parag Sanjay Bhingre 4900858c22 fix: skips session tagging (#209) 2021-05-11 19:00:49 +00:00
GitHub Actions 745b3becf5 chore: Update dist 2021-05-11 05:04:18 +00:00
dependabot[bot] 74dad352c3 chore: Bump aws-sdk from 2.899.0 to 2.904.0 (#208)
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.899.0 to 2.904.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.899.0...v2.904.0)

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>
2021-05-11 05:03:47 +00:00
dependabot[bot] d3caf7c609 chore: Bump eslint from 7.25.0 to 7.26.0 (#207)
Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.26.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.25.0...v7.26.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 05:02:11 +00:00
6 changed files with 1606 additions and 4046 deletions
+7
View File
@@ -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.
### [1.5.10](https://github.com/aws-actions/configure-aws-credentials/compare/v1.5.9...v1.5.10) (2021-06-01)
### Bug Fixes
* skips session tagging ([#209](https://github.com/aws-actions/configure-aws-credentials/issues/209)) ([4900858](https://github.com/aws-actions/configure-aws-credentials/commit/4900858c22f8f07170e3032d4105f99c2aafa9e7))
### [1.5.9](https://github.com/aws-actions/configure-aws-credentials/compare/v1.5.8...v1.5.9) (2021-05-10)
### [1.5.8](https://github.com/aws-actions/configure-aws-credentials/compare/v1.5.7...v1.5.8) (2021-03-02)
+530 -286
View File
File diff suppressed because one or more lines are too long
+9 -2
View File
@@ -57,6 +57,12 @@ async function assumeRole(params) {
const roleSessionTags = roleSkipSessionTagging ? undefined : tagArray;
if(roleSessionTags == undefined){
core.debug("Role session tagging has been skipped.")
} else {
core.debug(roleSessionTags.length + " role session tags are being used.")
}
const assumeRoleRequest = {
RoleArn: roleArn,
RoleSessionName: roleSessionName,
@@ -203,8 +209,9 @@ async function run() {
const roleExternalId = core.getInput('role-external-id', { required: false });
const roleDurationSeconds = core.getInput('role-duration-seconds', {required: false}) || MAX_ACTION_RUNTIME;
const roleSessionName = core.getInput('role-session-name', { required: false }) || ROLE_SESSION_NAME;
const roleSkipSessionTagging = core.getInput('role-skip-session-tagging', { required: false });
const roleSkipSessionTaggingInput = core.getInput('role-skip-session-tagging', { required: false })|| 'false';
const roleSkipSessionTagging = roleSkipSessionTaggingInput.toLowerCase() === 'true';
if (!region.match(REGION_REGEX)) {
throw new Error(`Region is not valid: ${region}`);
}
+2 -2
View File
@@ -559,7 +559,7 @@ describe('Configure AWS Credentials', () => {
test('skip tagging provided as true', async () => {
core.getInput = jest
.fn()
.mockImplementation(mockGetInput({...ASSUME_ROLE_INPUTS, 'role-skip-session-tagging': true}));
.mockImplementation(mockGetInput({...ASSUME_ROLE_INPUTS, 'role-skip-session-tagging': 'true'}));
await run();
expect(mockStsAssumeRole).toHaveBeenCalledWith({
@@ -573,7 +573,7 @@ describe('Configure AWS Credentials', () => {
test('skip tagging provided as false', async () => {
core.getInput = jest
.fn()
.mockImplementation(mockGetInput({...ASSUME_ROLE_INPUTS, 'role-skip-session-tagging': false}));
.mockImplementation(mockGetInput({...ASSUME_ROLE_INPUTS, 'role-skip-session-tagging': 'false'}));
await run();
expect(mockStsAssumeRole).toHaveBeenCalledWith({
+1054 -3752
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "aws-actions-configure-aws-credentials",
"version": "1.5.9",
"version": "1.5.10",
"description": "Configure AWS Credentials",
"main": "index.js",
"scripts": {
@@ -26,11 +26,11 @@
"homepage": "https://github.com/aws-actions/configure-aws-credentials#readme",
"dependencies": {
"@actions/core": "^1.2.7",
"aws-sdk": "^2.899.0"
"aws-sdk": "^2.918.0"
},
"devDependencies": {
"@zeit/ncc": "^0.22.3",
"eslint": "^7.25.0",
"jest": "^26.6.3"
"eslint": "^7.27.0",
"jest": "^27.0.3"
}
}