Commit Graph

75 Commits

Author SHA1 Message Date
Clare Liguori
1c435bbd5e feat: Add option to provide external ID (#32)
Fixes #28
2020-03-02 18:11:27 -08:00
Chuan-Yen Chiang
4d0082acf8 feat: Have an ability to configure session name (#29)
* 1. Add 'role-session-name' variable to action.yml
2. Configure roleSessionName with role-session-name from action or default value (GitHubActions)

* Add description on README.md

* update README.md

* update dist/index.js

* add test code

* update context based on comments
2020-03-01 11:47:10 -08:00
Clare Liguori
058322d68a chore(docs): add example of using aws cli 2020-02-12 17:53:12 -08:00
Release Automation
18a20dfee9 chore(release): 1.1.2 v1.1.2 2020-02-12 02:22:18 +00:00
GitHub Actions
9b3e97711b chore: Update dist 2020-02-12 02:16:58 +00:00
Laurence Armstrong
55f6a14016 fix: change sanitization character from '*' to '_' 2020-02-11 18:16:28 -08:00
Release Automation
e8a907912d chore(release): 1.1.1 v1.1.1 2020-02-07 17:33:45 +00:00
GitHub Actions
3a0d6924fb chore: Update dist 2020-02-06 21:05:04 +00:00
dependabot-preview[bot]
d317dedbb3 chore: Bump aws-sdk from 2.610.0 to 2.613.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.610.0 to 2.613.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.610.0...v2.613.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-06 13:04:18 -08:00
Release Automation
d15e9e3279 chore(release): 1.1.0 v1.1.0 2020-02-06 01:44:18 +00:00
Clare Liguori
260c6cc0ed fix: remove buildspecs 2020-02-04 15:39:05 -08:00
Clare Liguori
1436a160af fix: remove release script 2020-02-04 12:17:38 -08:00
GitHub Actions
a4a9d2530c chore: Update dist 2020-02-04 02:15:07 +00:00
dependabot-preview[bot]
1e5e67d2bc chore: Bump @actions/core from 1.2.0 to 1.2.2
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.0 to 1.2.2.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 18:14:31 -08:00
GitHub Actions
5eb8c27349 chore: Update dist 2020-02-04 02:12:53 +00:00
dependabot-preview[bot]
3ea5fc971d chore: Bump aws-sdk from 2.598.0 to 2.610.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.598.0 to 2.610.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.598.0...v2.610.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 18:12:03 -08:00
dependabot-preview[bot]
52de4c7182 chore: Bump jest from 24.9.0 to 25.1.0
Bumps [jest](https://github.com/facebook/jest) from 24.9.0 to 25.1.0.
- [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/v24.9.0...v25.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 18:10:10 -08:00
Clare Liguori
adc64e45b8 chore: Match package version to latest tagged version 2020-02-03 18:00:28 -08:00
GitHub Actions
a8ef869f65 chore: Update dist 2020-02-03 18:20:52 +00:00
Laurence Armstrong
ca04437296 Fix calling setSecret 2020-02-03 13:20:13 -05:00
Clare Liguori
77f2df7a41 fix: resolve commit ID in integ test script 2020-02-02 12:20:20 -05:00
Clare Liguori
3de962edc9 fix: create workflows dir in integ-tests 2020-01-31 16:51:26 -05:00
GitHub Actions
344f5cbe7e chore: Update dist 2020-01-31 02:34:18 +00:00
Laurence Armstrong
4faf8cd19a fix: sanitize AWS session tags (#20)
* Sanitize github actor tag

* Add some tests

* Sanitize Github actions workflow name

* Change sanitization character to an asterisk

* Update readme about assuming a role

* Tidy up assume role readme entry more

* Align sanitize spelling to use -ize

* typo: environement -> environment
2020-01-30 21:33:36 -05:00
Clare Liguori
c69f29a23c Remove sudo from codebuild steps 2020-01-30 16:30:31 -05:00
Clare Liguori
52bc82a29b feat: Build and integ test scripts for pipeline 2020-01-30 16:16:17 -05:00
GitHub Actions
8cff48fde9 chore: Update dist 2020-01-28 14:50:47 +00:00
Laurence Armstrong
e2fd53ab66 fix: set role credentials as secrets to mask them in logs (#19)
* Set role credentials as secrets to mask them in logs

* Always set aws credentuals as secrets

* Fix typo in comment
2020-01-28 09:50:15 -05:00
GitHub Actions
7b221d2e08 chore: Update dist 2020-01-22 19:04:40 +00:00
Matt Bullock
25960ab095 feat: add support for assuming a role (#17)
* first draft attempt at adding role assumption option

* refinements

* const not var

* clean up asserts

* set explicit sts endpoint and clarify required inputs error message

* streamline mocks

* add new inputs to Action definition

* ignore .idea directory

* add initial assume role test

* make tests fail usefully when not in GitHub Actions

* add logic to handle suppression of stack trace

* pull credentials exports out into function

* convert environment variable patching to use object for source and add needed members

* add test for STS call

* compartmentalization and use custom user agent in role assumption STS client

* change DO_NOT_SUPRESS_STACK_TRACE to SHOW_STACK_TRACE

* update role-to-assume input description
2020-01-22 11:04:03 -08:00
GitHub Actions
e3c83cfe60 chore: Update dist 2020-01-06 20:38:44 +00:00
dependabot-preview[bot]
cf2cbf51d2 chore: Bump aws-sdk from 2.597.0 to 2.598.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.597.0 to 2.598.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.597.0...v2.598.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 12:37:55 -08:00
GitHub Actions
6f58251f8d chore: Update dist 2020-01-06 20:28:06 +00:00
dependabot-preview[bot]
d3c4189f16 chore: Bump aws-sdk from 2.596.0 to 2.597.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.596.0 to 2.597.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.596.0...v2.597.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 12:27:37 -08:00
dependabot-preview[bot]
4f6148fd2d chore: Bump @zeit/ncc from 0.20.5 to 0.21.0
Bumps [@zeit/ncc](https://github.com/zeit/ncc) from 0.20.5 to 0.21.0.
- [Release notes](https://github.com/zeit/ncc/releases)
- [Commits](https://github.com/zeit/ncc/compare/0.20.5...0.21.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 12:27:23 -08:00
GitHub Actions
5f791d0fc5 chore: Update dist 2020-01-01 23:27:33 +00:00
dependabot-preview[bot]
3e55b391c1 chore: Bump aws-sdk from 2.586.0 to 2.596.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.586.0 to 2.596.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.586.0...v2.596.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-01 15:26:52 -08:00
dependabot-preview[bot]
23d406d277 chore: Bump eslint from 6.7.2 to 6.8.0
Bumps [eslint](https://github.com/eslint/eslint) from 6.7.2 to 6.8.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/v6.7.2...v6.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-01 15:26:27 -08:00
Clare Liguori
8588cbdcd3 chore: Automated packaging commit uses a conventional commit message 2020-01-01 15:17:20 -08:00
Clare Liguori
be8d1ecb70 chore: upgrade to actions/checkout v2 2020-01-01 15:08:04 -08:00
Michael Hausenblas
c2cc6055b3 fixes link to GitHub Actions secrets 2019-12-27 16:53:09 -08:00
GitHub Actions
9aba253d91 Update dist 2019-12-09 23:34:03 +00:00
dependabot-preview[bot]
83b93836ae chore: Bump aws-sdk from 2.578.0 to 2.586.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.578.0 to 2.586.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.578.0...v2.586.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-09 15:33:28 -08:00
dependabot-preview[bot]
1169129f3d chore: Bump eslint from 6.7.1 to 6.7.2 (#4)
Bumps [eslint](https://github.com/eslint/eslint) from 6.7.1 to 6.7.2.
- [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/v6.7.1...v6.7.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-09 15:03:08 -08:00
Clare Liguori
11ae4e96f3 Add link action.yml for full input/output documentation 2019-11-29 09:44:16 -08:00
GitHub Actions
18a79864eb Update dist v1.0.1 2019-11-25 14:48:30 +00:00
dependabot-preview[bot]
6f45a2f25a Bump aws-sdk from 2.573.0 to 2.578.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.573.0 to 2.578.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.573.0...v2.578.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 06:47:51 -08:00
dependabot-preview[bot]
d352c53832 Bump eslint from 6.6.0 to 6.7.1
Bumps [eslint](https://github.com/eslint/eslint) from 6.6.0 to 6.7.1.
- [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/v6.6.0...v6.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 06:42:20 -08:00
GitHub Actions
d18f724ec8 Update dist 2019-11-18 17:48:26 +00:00
Clare Liguori
b6dbec51a5 Packaging workflow, so that dist/ doesn't get out of date 2019-11-18 09:43:17 -08:00