From 4df488406f65c9a5362f487b7db62427b27175b6 Mon Sep 17 00:00:00 2001 From: lepadatu Date: Wed, 4 Sep 2024 19:12:16 +0300 Subject: [PATCH] Dev (#7) * First release * Org & README updates * Updated readme * updated .gitignore * modified the package files and workflows * Updated the release workflow * changed the workflows * updated the tests * workflow update * build(release): 1.0.0 [skip ci] # 1.0.0 (2024-09-02) ### Bug Fixes * **action-config:** prepare for release to marketplace ([#10](https://github.com/lepadatu-org/create-github-app-token-aws/issues/10)) ([12aa811](https://github.com/lepadatu-org/create-github-app-token-aws/commit/12aa81137bd7fec724cf23ab0c54092261f59830)) * check for token before revoking ([#30](https://github.com/lepadatu-org/create-github-app-token-aws/issues/30)) ([2540ed4](https://github.com/lepadatu-org/create-github-app-token-aws/commit/2540ed49e5d6bea751bf3da363bb5b5a6fcf0c07)) * **ci:** release configuration ([#6](https://github.com/lepadatu-org/create-github-app-token-aws/issues/6)) ([847634e](https://github.com/lepadatu-org/create-github-app-token-aws/commit/847634eeb36664e2d49db18add847e3fe1a183db)) * clarify `owner` input description ([#118](https://github.com/lepadatu-org/create-github-app-token-aws/issues/118)) ([d9bc169](https://github.com/lepadatu-org/create-github-app-token-aws/commit/d9bc16919cdbdb07543eb732aa872437384e296f)) * **deps:** bump dependencies([#84](https://github.com/lepadatu-org/create-github-app-token-aws/issues/84)) ([474769d](https://github.com/lepadatu-org/create-github-app-token-aws/commit/474769db88900a253a1c4aa9b4398d8a90c4cdab)), closes [#651](https://github.com/lepadatu-org/create-github-app-token-aws/issues/651) [#648](https://github.com/lepadatu-org/create-github-app-token-aws/issues/648) [#649](https://github.com/lepadatu-org/create-github-app-token-aws/issues/649) [#651](https://github.com/lepadatu-org/create-github-app-token-aws/issues/651) [#648](https://github.com/lepadatu-org/create-github-app-token-aws/issues/648) [#646](https://github.com/lepadatu-org/create-github-app-token-aws/issues/646) * **deps:** bump the production-dependencies group with 1 update ([#123](https://github.com/lepadatu-org/create-github-app-token-aws/issues/123)) ([beea7b8](https://github.com/lepadatu-org/create-github-app-token-aws/commit/beea7b860ac0b14ca14258aca701da842aa65e30)), closes [nodejs/undici#2978](https://github.com/nodejs/undici/issues/2978) [nodejs/undici#2971](https://github.com/nodejs/undici/issues/2971) [nodejs/undici#2980](https://github.com/nodejs/undici/issues/2980) [#2982](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2982) [nodejs/undici#2983](https://github.com/nodejs/undici/issues/2983) [nodejs/undici#2987](https://github.com/nodejs/undici/issues/2987) [nodejs/undici#2991](https://github.com/nodejs/undici/issues/2991) [#2986](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2986) [nodejs/undici#2992](https://github.com/nodejs/undici/issues/2992) [nodejs/undici#2985](https://github.com/nodejs/undici/issues/2985) [nodejs/undici#2993](https://github.com/nodejs/undici/issues/2993) [nodejs/undici#2995](https://github.com/nodejs/undici/issues/2995) [nodejs/undici#2998](https://github.com/nodejs/undici/issues/2998) [#2863](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2863) [nodejs/undici#2999](https://github.com/nodejs/undici/issues/2999) [nodejs/undici#3001](https://github.com/nodejs/undici/issues/3001) [nodejs/undici#2971](https://github.com/nodejs/undici/issues/2971) [nodejs/undici#2980](https://github.com/nodejs/undici/issues/2980) [nodejs/undici#2983](https://github.com/nodejs/undici/issues/2983) [nodejs/undici#2987](https://github.com/nodejs/undici/issues/2987) [nodejs/undici#2991](https://github.com/nodejs/undici/issues/2991) [nodejs/undici#2985](https://github.com/nodejs/undici/issues/2985) [nodejs/undici#2995](https://github.com/nodejs/undici/issues/2995) [nodejs/undici#2960](https://github.com/nodejs/undici/issues/2960) [nodejs/undici#2959](https://github.com/nodejs/undici/issues/2959) [nodejs/undici#2969](https://github.com/nodejs/undici/issues/2969) [nodejs/undici#2962](https://github.com/nodejs/undici/issues/2962) [nodejs/undici#2974](https://github.com/nodejs/undici/issues/2974) [nodejs/undici#2967](https://github.com/nodejs/undici/issues/2967) [nodejs/undici#2966](https://github.com/nodejs/undici/issues/2966) [nodejs/undici#2969](https://github.com/nodejs/undici/issues/2969) [nodejs/undici#2962](https://github.com/nodejs/undici/issues/2962) [nodejs/undici#2826](https://github.com/nodejs/undici/issues/2826) [nodejs/undici#2952](https://github.com/nodejs/undici/issues/2952) [#3001](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3001) [#2863](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2863) [#2999](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2999) [#2998](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2998) [#2993](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2993) [#2986](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2986) [#2992](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2992) [#2991](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2991) [#2987](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2987) * **deps:** bump the production-dependencies group with 1 update ([#68](https://github.com/lepadatu-org/create-github-app-token-aws/issues/68)) ([6375dce](https://github.com/lepadatu-org/create-github-app-token-aws/commit/6375dcedb2ea16f4290923bb46ed8a00ea439cae)) * **deps:** bump the production-dependencies group with 2 updates ([#138](https://github.com/lepadatu-org/create-github-app-token-aws/issues/138)) ([8d81a59](https://github.com/lepadatu-org/create-github-app-token-aws/commit/8d81a59103d6d17f5ecc243eb5fd53757607a1d2)), closes [#606](https://github.com/lepadatu-org/create-github-app-token-aws/issues/606) [#606](https://github.com/lepadatu-org/create-github-app-token-aws/issues/606) [#605](https://github.com/lepadatu-org/create-github-app-token-aws/issues/605) [#604](https://github.com/lepadatu-org/create-github-app-token-aws/issues/604) [nodejs/undici#3295](https://github.com/nodejs/undici/issues/3295) [nodejs/undici#3298](https://github.com/nodejs/undici/issues/3298) [nodejs/undici#3294](https://github.com/nodejs/undici/issues/3294) [nodejs/undici#3281](https://github.com/nodejs/undici/issues/3281) [nodejs/undici#3286](https://github.com/nodejs/undici/issues/3286) [nodejs/undici#3284](https://github.com/nodejs/undici/issues/3284) [nodejs/undici#3291](https://github.com/nodejs/undici/issues/3291) [nodejs/undici#3290](https://github.com/nodejs/undici/issues/3290) [nodejs/undici#3283](https://github.com/nodejs/undici/issues/3283) [nodejs/undici#3281](https://github.com/nodejs/undici/issues/3281) [nodejs/undici#3263](https://github.com/nodejs/undici/issues/3263) [nodejs/undici#3279](https://github.com/nodejs/undici/issues/3279) [nodejs/undici#3227](https://github.com/nodejs/undici/issues/3227) [nodejs/undici#3234](https://github.com/nodejs/undici/issues/3234) [nodejs/undici#3240](https://github.com/nodejs/undici/issues/3240) [nodejs/undici#3245](https://github.com/nodejs/undici/issues/3245) [nodejs/undici#3241](https://github.com/nodejs/undici/issues/3241) [nodejs/undici#3247](https://github.com/nodejs/undici/issues/3247) [nodejs/undici#3248](https://github.com/nodejs/undici/issues/3248) [nodejs/undici#3219](https://github.com/nodejs/undici/issues/3219) [nodejs/undici#3251](https://github.com/nodejs/undici/issues/3251) [nodejs/undici#3254](https://github.com/nodejs/undici/issues/3254) [nodejs/undici#3258](https://github.com/nodejs/undici/issues/3258) [nodejs/undici#3257](https://github.com/nodejs/undici/issues/3257) [nodejs/undici#3259](https://github.com/nodejs/undici/issues/3259) [nodejs/undici#3262](https://github.com/nodejs/undici/issues/3262) [nodejs/undici#3264](https://github.com/nodejs/undici/issues/3264) [nodejs/undici#3118](https://github.com/nodejs/undici/issues/3118) [nodejs/undici#3269](https://github.com/nodejs/undici/issues/3269) [#3301](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3301) [#3294](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3294) [#3298](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3298) [#3295](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3295) [#3293](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3293) [#3283](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3283) [#3290](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3290) [#3291](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3291) [#3284](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3284) [#3286](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3286) * **deps:** bump the production-dependencies group with 2 updates ([#94](https://github.com/lepadatu-org/create-github-app-token-aws/issues/94)) ([323044f](https://github.com/lepadatu-org/create-github-app-token-aws/commit/323044ff3180ac0ba3543efbe2b76ff90050e9b6)), closes [#562](https://github.com/lepadatu-org/create-github-app-token-aws/issues/562) [#557](https://github.com/lepadatu-org/create-github-app-token-aws/issues/557) [#562](https://github.com/lepadatu-org/create-github-app-token-aws/issues/562) [#560](https://github.com/lepadatu-org/create-github-app-token-aws/issues/560) [#559](https://github.com/lepadatu-org/create-github-app-token-aws/issues/559) [#558](https://github.com/lepadatu-org/create-github-app-token-aws/issues/558) [#557](https://github.com/lepadatu-org/create-github-app-token-aws/issues/557) [#553](https://github.com/lepadatu-org/create-github-app-token-aws/issues/553) [#552](https://github.com/lepadatu-org/create-github-app-token-aws/issues/552) [#551](https://github.com/lepadatu-org/create-github-app-token-aws/issues/551) [#75](https://github.com/lepadatu-org/create-github-app-token-aws/issues/75) [#75](https://github.com/lepadatu-org/create-github-app-token-aws/issues/75) * **deps:** bump the production-dependencies group with 3 updates ([#107](https://github.com/lepadatu-org/create-github-app-token-aws/issues/107)) ([f83fb27](https://github.com/lepadatu-org/create-github-app-token-aws/commit/f83fb279aa2bc96a80fac0b8cb97b369ae18334f)), closes [#579](https://github.com/lepadatu-org/create-github-app-token-aws/issues/579) [#579](https://github.com/lepadatu-org/create-github-app-token-aws/issues/579) [#576](https://github.com/lepadatu-org/create-github-app-token-aws/issues/576) [#577](https://github.com/lepadatu-org/create-github-app-token-aws/issues/577) [#574](https://github.com/lepadatu-org/create-github-app-token-aws/issues/574) [#572](https://github.com/lepadatu-org/create-github-app-token-aws/issues/572) [#571](https://github.com/lepadatu-org/create-github-app-token-aws/issues/571) [#567](https://github.com/lepadatu-org/create-github-app-token-aws/issues/567) [#681](https://github.com/lepadatu-org/create-github-app-token-aws/issues/681) [#678](https://github.com/lepadatu-org/create-github-app-token-aws/issues/678) [#667](https://github.com/lepadatu-org/create-github-app-token-aws/issues/667) [#681](https://github.com/lepadatu-org/create-github-app-token-aws/issues/681) [#680](https://github.com/lepadatu-org/create-github-app-token-aws/issues/680) [#609](https://github.com/lepadatu-org/create-github-app-token-aws/issues/609) [#678](https://github.com/lepadatu-org/create-github-app-token-aws/issues/678) [#676](https://github.com/lepadatu-org/create-github-app-token-aws/issues/676) [#673](https://github.com/lepadatu-org/create-github-app-token-aws/issues/673) [#669](https://github.com/lepadatu-org/create-github-app-token-aws/issues/669) [#667](https://github.com/lepadatu-org/create-github-app-token-aws/issues/667) [#671](https://github.com/lepadatu-org/create-github-app-token-aws/issues/671) [nodejs/undici#2683](https://github.com/nodejs/undici/issues/2683) [nodejs/undici#2645](https://github.com/nodejs/undici/issues/2645) [nodejs/undici#2695](https://github.com/nodejs/undici/issues/2695) [nodejs/undici#2699](https://github.com/nodejs/undici/issues/2699) [nodejs/undici#2703](https://github.com/nodejs/undici/issues/2703) [nodejs/undici#2644](https://github.com/nodejs/undici/issues/2644) [nodejs/undici#2702](https://github.com/nodejs/undici/issues/2702) [nodejs/undici#2706](https://github.com/nodejs/undici/issues/2706) [nodejs/undici#2707](https://github.com/nodejs/undici/issues/2707) [nodejs/undici#2644](https://github.com/nodejs/undici/issues/2644) [#2707](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2707) [#2706](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2706) [#2702](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2702) [#2644](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2644) [#2703](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2703) [#2699](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2699) [#2695](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2695) [#2645](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2645) [#2683](https://github.com/lepadatu-org/create-github-app-token-aws/issues/2683) * **deps:** bump the production-dependencies group with 3 updates ([#51](https://github.com/lepadatu-org/create-github-app-token-aws/issues/51)) ([6d98b25](https://github.com/lepadatu-org/create-github-app-token-aws/commit/6d98b259d9c6bef17db279eb4aefbbd031400ba4)), closes [#1511](https://github.com/lepadatu-org/create-github-app-token-aws/issues/1511) [#535](https://github.com/lepadatu-org/create-github-app-token-aws/issues/535) [#535](https://github.com/lepadatu-org/create-github-app-token-aws/issues/535) [#533](https://github.com/lepadatu-org/create-github-app-token-aws/issues/533) [#531](https://github.com/lepadatu-org/create-github-app-token-aws/issues/531) [#530](https://github.com/lepadatu-org/create-github-app-token-aws/issues/530) [#524](https://github.com/lepadatu-org/create-github-app-token-aws/issues/524) [#637](https://github.com/lepadatu-org/create-github-app-token-aws/issues/637) [#637](https://github.com/lepadatu-org/create-github-app-token-aws/issues/637) [#631](https://github.com/lepadatu-org/create-github-app-token-aws/issues/631) [#626](https://github.com/lepadatu-org/create-github-app-token-aws/issues/626) * **deps:** bump undici from 6.10.2 to 6.11.1 ([#125](https://github.com/lepadatu-org/create-github-app-token-aws/issues/125)) ([3c223c7](https://github.com/lepadatu-org/create-github-app-token-aws/commit/3c223c7336e276235eb843dd4e6ad42147199cbf)), closes [#3024](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3024) [nodejs/undici#3044](https://github.com/nodejs/undici/issues/3044) [#3023](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3023) [nodejs/undici#3025](https://github.com/nodejs/undici/issues/3025) [nodejs/undici#3024](https://github.com/nodejs/undici/issues/3024) [nodejs/undici#3034](https://github.com/nodejs/undici/issues/3034) [nodejs/undici#3038](https://github.com/nodejs/undici/issues/3038) [nodejs/undici#2947](https://github.com/nodejs/undici/issues/2947) [nodejs/undici#3040](https://github.com/nodejs/undici/issues/3040) [nodejs/undici#3036](https://github.com/nodejs/undici/issues/3036) [nodejs/undici#3041](https://github.com/nodejs/undici/issues/3041) [#3024](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3024) [#3041](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3041) [#3036](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3036) * **deps:** bump undici from 6.18.2 to 6.19.2 in the production-dependencies group ([#149](https://github.com/lepadatu-org/create-github-app-token-aws/issues/149)) ([cc82279](https://github.com/lepadatu-org/create-github-app-token-aws/commit/cc82279e84540c5543078cedc5af4fcfab0a96bb)), closes [#3337](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3337) [nodejs/undici#3338](https://github.com/nodejs/undici/issues/3338) [nodejs/undici#3340](https://github.com/nodejs/undici/issues/3340) [nodejs/undici#3332](https://github.com/nodejs/undici/issues/3332) [nodejs/undici#3335](https://github.com/nodejs/undici/issues/3335) [nodejs/undici#3305](https://github.com/nodejs/undici/issues/3305) [nodejs/undici#3303](https://github.com/nodejs/undici/issues/3303) [nodejs/undici#3304](https://github.com/nodejs/undici/issues/3304) [nodejs/undici#3306](https://github.com/nodejs/undici/issues/3306) [nodejs/undici#3309](https://github.com/nodejs/undici/issues/3309) [nodejs/undici#3313](https://github.com/nodejs/undici/issues/3313) [nodejs/undici#3311](https://github.com/nodejs/undici/issues/3311) [nodejs/undici#3107](https://github.com/nodejs/undici/issues/3107) [nodejs/undici#3302](https://github.com/nodejs/undici/issues/3302) [nodejs/undici#3320](https://github.com/nodejs/undici/issues/3320) [nodejs/undici#3321](https://github.com/nodejs/undici/issues/3321) [nodejs/undici#3316](https://github.com/nodejs/undici/issues/3316) [nodejs/undici#3318](https://github.com/nodejs/undici/issues/3318) [nodejs/undici#3326](https://github.com/nodejs/undici/issues/3326) [nodejs/undici#3324](https://github.com/nodejs/undici/issues/3324) [nodejs/undici#3325](https://github.com/nodejs/undici/issues/3325) [nodejs/undici#3316](https://github.com/nodejs/undici/issues/3316) [nodejs/undici#3318](https://github.com/nodejs/undici/issues/3318) [#3342](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3342) [#3332](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3332) [#3340](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3340) [#3337](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3337) [#3338](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3338) [#3336](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3336) [#3335](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3335) [#3325](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3325) [#3324](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3324) [#3326](https://github.com/lepadatu-org/create-github-app-token-aws/issues/3326) * **deps:** bump undici from 6.6.0 to 6.6.1 ([#103](https://github.com/lepadatu-org/create-github-app-token-aws/issues/103)) ([5195df7](https://github.com/lepadatu-org/create-github-app-token-aws/commit/5195df7c8824728b348fbaa3f0921ce6ca4ecec0)) * **deps:** update `[@octokit](https://github.com/octokit)` packages to latest ([#24](https://github.com/lepadatu-org/create-github-app-token-aws/issues/24)) ([b287cb8](https://github.com/lepadatu-org/create-github-app-token-aws/commit/b287cb86e286e27e7f449cf330ba028f7b97f7ef)) * do not revoke token if already expired ([#147](https://github.com/lepadatu-org/create-github-app-token-aws/issues/147)) ([66a7045](https://github.com/lepadatu-org/create-github-app-token-aws/commit/66a70456860bafc79e37635eea77b8b2a929f6c8)), closes [#140](https://github.com/lepadatu-org/create-github-app-token-aws/issues/140) [#95](https://github.com/lepadatu-org/create-github-app-token-aws/issues/95) * **GHES:** respect `GITHUB_API_URL` when creating installation access token ([#38](https://github.com/lepadatu-org/create-github-app-token-aws/issues/38)) ([c08c5ac](https://github.com/lepadatu-org/create-github-app-token-aws/commit/c08c5ace340664df431bf7f11d51b61d92358c2b)), closes [#36](https://github.com/lepadatu-org/create-github-app-token-aws/issues/36) * handle clock skew ([#87](https://github.com/lepadatu-org/create-github-app-token-aws/issues/87)) ([495056a](https://github.com/lepadatu-org/create-github-app-token-aws/commit/495056a51509f267cd7262080a7bb618ad7b5d08)) * mask the installation token in logs ([#28](https://github.com/lepadatu-org/create-github-app-token-aws/issues/28)) ([bc256c2](https://github.com/lepadatu-org/create-github-app-token-aws/commit/bc256c234bf48ffdee7ae27409ebc7f9aa3c8ab4)) * **README:** fix name in usage examples ([#12](https://github.com/lepadatu-org/create-github-app-token-aws/issues/12)) ([cb1fcdd](https://github.com/lepadatu-org/create-github-app-token-aws/commit/cb1fcdda590f1dd2a7c771cfa62e50bb4ac1cfa5)) * **README:** update action name ([#5](https://github.com/lepadatu-org/create-github-app-token-aws/issues/5)) ([c08b794](https://github.com/lepadatu-org/create-github-app-token-aws/commit/c08b7942e4f16842e11846de387178fdd8a4dc1a)) * **README:** update repository name, remove section for feature that is not yet implemented ([#9](https://github.com/lepadatu-org/create-github-app-token-aws/issues/9)) ([c04bb41](https://github.com/lepadatu-org/create-github-app-token-aws/commit/c04bb41e616d2a16422908c7ca1b81930f23079b)) * **release:** build `dist/` before release ([#33](https://github.com/lepadatu-org/create-github-app-token-aws/issues/33)) ([9a6a017](https://github.com/lepadatu-org/create-github-app-token-aws/commit/9a6a017c104eb1b36533ee8195e814f567934ce8)), closes [#32](https://github.com/lepadatu-org/create-github-app-token-aws/issues/32) * **release:** update version in `package.json` ([#35](https://github.com/lepadatu-org/create-github-app-token-aws/issues/35)) ([1dccc4c](https://github.com/lepadatu-org/create-github-app-token-aws/commit/1dccc4ccc6e1df7d6adc1bde339ce0d7a2ea7df7)), closes [#34](https://github.com/lepadatu-org/create-github-app-token-aws/issues/34) * **revocation:** avoid revoking expired tokens and fail gracefully ([#95](https://github.com/lepadatu-org/create-github-app-token-aws/issues/95)) ([0c01407](https://github.com/lepadatu-org/create-github-app-token-aws/commit/0c014070f93045fed9b48f568f28b2f1cca37088)), closes [#72](https://github.com/lepadatu-org/create-github-app-token-aws/issues/72) ### Features * `github-api-url` ([#88](https://github.com/lepadatu-org/create-github-app-token-aws/issues/88)) ([837e275](https://github.com/lepadatu-org/create-github-app-token-aws/commit/837e2752e017897b136a438ea12a06c044b8414e)), closes [#77](https://github.com/lepadatu-org/create-github-app-token-aws/issues/77) * **`private-key`:** escaped newlines will be replaced ([#132](https://github.com/lepadatu-org/create-github-app-token-aws/issues/132)) ([9d23fb9](https://github.com/lepadatu-org/create-github-app-token-aws/commit/9d23fb93dd620572046d85c7c1032b488c12514f)) * Add a `skip_token_revoke` input for configuring token revocation ([#54](https://github.com/lepadatu-org/create-github-app-token-aws/issues/54)) ([9ec88c4](https://github.com/lepadatu-org/create-github-app-token-aws/commit/9ec88c41eef7052418d233d147c59fbdce19c56f)), closes [1#L46-L47](https://github.com/1/issues/L46-L47) [1#L132](https://github.com/1/issues/L132) * add GitHub Enterprise Server (GHES) support ([#36](https://github.com/lepadatu-org/create-github-app-token-aws/issues/36)) ([ede6c15](https://github.com/lepadatu-org/create-github-app-token-aws/commit/ede6c158812854da7c63aa6635138d168de14bea)) * add proxy support ([#102](https://github.com/lepadatu-org/create-github-app-token-aws/issues/102)) ([1f82f7d](https://github.com/lepadatu-org/create-github-app-token-aws/commit/1f82f7df931fbb9a6ba4a94ffacb46eb12eba094)) * add retry ([#79](https://github.com/lepadatu-org/create-github-app-token-aws/issues/79)) ([0f3b4d7](https://github.com/lepadatu-org/create-github-app-token-aws/commit/0f3b4d7df99b1af7cb8596ba4f855d6de4155aa5)), closes [#71](https://github.com/lepadatu-org/create-github-app-token-aws/issues/71) * initial version ([#1](https://github.com/lepadatu-org/create-github-app-token-aws/issues/1)) ([f456852](https://github.com/lepadatu-org/create-github-app-token-aws/commit/f45685208fd9b88321d74015b5996fc8c3e43d18)) * **outputs:** `app-slug` and `installation-id` ([#105](https://github.com/lepadatu-org/create-github-app-token-aws/issues/105)) ([babaff4](https://github.com/lepadatu-org/create-github-app-token-aws/commit/babaff4320b432cece89fd8d07209bb3f6e98fe3)) * support tokens scoped to multiple repositories within organization ([#46](https://github.com/lepadatu-org/create-github-app-token-aws/issues/46)) ([20fd863](https://github.com/lepadatu-org/create-github-app-token-aws/commit/20fd86373fdcbeffde8b73b17ebb3a7a62c6c407)) * use `node20` as runner ([#23](https://github.com/lepadatu-org/create-github-app-token-aws/issues/23)) ([803e078](https://github.com/lepadatu-org/create-github-app-token-aws/commit/803e078eb599890256679b164357599b8681de13)), closes [/github.com/actions/runner/issues/2619#issuecomment-1679003443](https://github.com//github.com/actions/runner/issues/2619/issues/issuecomment-1679003443) * use dash notation for inputs (deprecates underscore notation) ([#59](https://github.com/lepadatu-org/create-github-app-token-aws/issues/59)) ([7b1d2ae](https://github.com/lepadatu-org/create-github-app-token-aws/commit/7b1d2aef87b41884c03f2e69a0a422d5c69c5d72)), closes [#57](https://github.com/lepadatu-org/create-github-app-token-aws/issues/57) [/github.com/actions/create-github-app-token/issues/57#issuecomment-1751272252](https://github.com//github.com/actions/create-github-app-token/issues/57/issues/issuecomment-1751272252) * workflow update * First release * Org & README updates * updated * updated --------- Co-authored-by: semantic-release-bot --- .gitignore | 1 + .vscode/settings.json | 5 + README.md | 9 +- package-lock.json | 90 +----------------- package.json | 8 +- tests/main-missing-kms-key-id.test.js | 4 +- ...llation-access-token-fail-response.test.js | 2 +- tests/main.js | 4 +- tests/snapshots/index.js.md | 12 +-- tests/snapshots/index.js.snap | Bin 1187 -> 1185 bytes 10 files changed, 32 insertions(+), 103 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index b443287..35c13ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env coverage node_modules/ +.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..97da669 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "lepadatu" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index a52ff32..d6826e6 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,13 @@ In the vanilla action, the runner has direct access to sensitive information (i. This action mitigates this risk by importing the sensitive information in a very secure location (AWS KMS) which does not allow the retrieval of the sensitive information. - >[!IMPORTANT] - >Neither this action, nor AWS is responsible for securing access to your AWS account. See the [shared responsibility model](https://docs.aws.amazon.com/whitepapers/latest/aws-risk-and-compliance/shared-responsibility-model.html). It is highly advised to use temporary AWS credentials scoped to the least privilege when accessing AWS API in order to sign the JWT token. + >[!IMPORTANT] + > + >Neither this action, nor AWS is responsible for securing access to your AWS account. See the [shared responsibility model](https://docs.aws.amazon.com/whitepapers/latest/aws-risk-and-compliance/shared-responsibility-model.html). + > + >It is highly advised to use temporary AWS credentials scoped to the least privilege when accessing AWS API in order to sign the JWT token. + > + >Using AWS KMS will generate extra costs in your AWS bill. ## Usage diff --git a/package-lock.json b/package-lock.json index df2843e..404a4cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1257,68 +1257,6 @@ "node": ">= 8" } }, - "node_modules/@octokit/auth-app": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.0.tgz", - "integrity": "sha512-cazGaJPSgeZ8NkVYeM/C5l/6IQ5vZnsI8p1aMucadCkt/bndI+q+VqwrlnWbASRmenjOkf1t1RpCKrif53U8gw==", - "dependencies": { - "@octokit/auth-oauth-app": "^8.1.0", - "@octokit/auth-oauth-user": "^5.1.0", - "@octokit/request": "^9.1.1", - "@octokit/request-error": "^6.1.1", - "@octokit/types": "^13.4.1", - "lru-cache": "^10.0.0", - "universal-github-app-jwt": "^2.2.0", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-oauth-app": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.1.tgz", - "integrity": "sha512-5UtmxXAvU2wfcHIPPDWzVSAWXVJzG3NWsxb7zCFplCWEmMCArSZV0UQu5jw5goLQXbFyOr5onzEH37UJB3zQQg==", - "dependencies": { - "@octokit/auth-oauth-device": "^7.0.0", - "@octokit/auth-oauth-user": "^5.0.1", - "@octokit/request": "^9.0.0", - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-oauth-device": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.1.tgz", - "integrity": "sha512-HWl8lYueHonuyjrKKIup/1tiy0xcmQCdq5ikvMO1YwkNNkxb6DXfrPjrMYItNLyCP/o2H87WuijuE+SlBTT8eg==", - "dependencies": { - "@octokit/oauth-methods": "^5.0.0", - "@octokit/request": "^9.0.0", - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-oauth-user": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.1.tgz", - "integrity": "sha512-rRkMz0ErOppdvEfnemHJXgZ9vTPhBuC6yASeFaB7I2yLMd7QpjfrL1mnvRPlyKo+M6eeLxrKanXJ9Qte29SRsw==", - "dependencies": { - "@octokit/auth-oauth-device": "^7.0.1", - "@octokit/oauth-methods": "^5.0.0", - "@octokit/request": "^9.0.1", - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/@octokit/endpoint": { "version": "10.1.1", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz", @@ -1331,28 +1269,6 @@ "node": ">= 18" } }, - "node_modules/@octokit/oauth-authorization-url": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-7.1.1.tgz", - "integrity": "sha512-ooXV8GBSabSWyhLUowlMIVd9l1s2nsOGQdlP2SQ4LnkEsGXzeCvbSbCPdZThXhEFzleGPwbapT0Sb+YhXRyjCA==", - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/oauth-methods": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.2.tgz", - "integrity": "sha512-C5lglRD+sBlbrhCUTxgJAFjWgJlmTx5bQ7Ch0+2uqRjYv7Cfb5xpX4WuSC9UgQna3sqRGBL9EImX9PvTpMaQ7g==", - "dependencies": { - "@octokit/oauth-authorization-url": "^7.0.0", - "@octokit/request": "^9.1.0", - "@octokit/request-error": "^6.1.0", - "@octokit/types": "^13.0.0" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/@octokit/openapi-types": { "version": "22.2.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz", @@ -3711,6 +3627,7 @@ "version": "10.2.2", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", + "dev": true, "engines": { "node": "14 || >=16.14" } @@ -4977,11 +4894,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/universal-github-app-jwt": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/universal-github-app-jwt/-/universal-github-app-jwt-2.2.0.tgz", - "integrity": "sha512-G5o6f95b5BggDGuUfKDApKaCgNYy2x7OdHY0zSMF081O0EJobw+1130VONhrA7ezGSV2FNOGyM+KQpQZAr9bIQ==" - }, "node_modules/universal-user-agent": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", diff --git a/package.json b/package.json index 31e60ec..a42090f 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,11 @@ } ] ] - } + }, + "main": "main.js", + "directories": { + "lib": "lib", + "test": "tests" + }, + "author": "" } diff --git a/tests/main-missing-kms-key-id.test.js b/tests/main-missing-kms-key-id.test.js index 102ea85..d96dc38 100644 --- a/tests/main-missing-kms-key-id.test.js +++ b/tests/main-missing-kms-key-id.test.js @@ -1,5 +1,5 @@ -process.env.GITHUB_REPOSITORY_OWNER = "lepadatu-org"; -process.env.GITHUB_REPOSITORY = "lepadatu-org/create-github-app-token-aws"; +process.env.GITHUB_REPOSITORY_OWNER = "lepadatu-actions"; +process.env.GITHUB_REPOSITORY = "lepadatu-actions/create-github-app-token-aws"; process.env["INPUT_APP-ID"] = "123456"; // Verify `main` exits with an error when neither the `kms-key-id` nor `kms_key_id` input is set. diff --git a/tests/main-token-get-installation-access-token-fail-response.test.js b/tests/main-token-get-installation-access-token-fail-response.test.js index 26a0445..4b3f9cf 100644 --- a/tests/main-token-get-installation-access-token-fail-response.test.js +++ b/tests/main-token-get-installation-access-token-fail-response.test.js @@ -11,7 +11,7 @@ await test((mockPool) => { method: "POST", headers: { accept: "application/vnd.github.v3+json", - "user-agent": "lepadatu-org/create-github-app-token-aws", + "user-agent": "lepadatu-actions/create-github-app-token-aws", // Intentionally omitting the `authorization` header. }, }) diff --git a/tests/main.js b/tests/main.js index 174bb5f..082aebf 100644 --- a/tests/main.js +++ b/tests/main.js @@ -3,8 +3,8 @@ import { MockAgent, setGlobalDispatcher } from "undici"; export const DEFAULT_ENV = { - GITHUB_REPOSITORY_OWNER: "lepadatu-org", - GITHUB_REPOSITORY: "lepadatu-org/create-github-app-token-aws", + GITHUB_REPOSITORY_OWNER: "lepadatu-actions", + GITHUB_REPOSITORY: "lepadatu-actions/create-github-app-token-aws", // inputs are set as environment variables with the prefix INPUT_ // https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs "INPUT_GITHUB-API-URL": "https://api.github.com", diff --git a/tests/snapshots/index.js.md b/tests/snapshots/index.js.md index 6ca43bf..b8c5150 100644 --- a/tests/snapshots/index.js.md +++ b/tests/snapshots/index.js.md @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev). > stdout - `owner and repositories set, creating token for repositories "lepadatu-org/create-github-app-token-aws" owned by "lepadatu-org"␊ + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws" owned by "lepadatu-actions"␊ ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ ␊ ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ @@ -93,7 +93,7 @@ Generated by [AVA](https://avajs.dev). > stdout - `owner and repositories set, creating token for repositories "lepadatu-org/create-github-app-token-aws" owned by "lepadatu-org"␊ + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws" owned by "lepadatu-actions"␊ ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ ␊ ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ @@ -132,7 +132,7 @@ Generated by [AVA](https://avajs.dev). > stdout - `owner and repositories set, creating token for repositories "lepadatu-org/create-github-app-token-aws,actions/toolkit" owned by "lepadatu-org"␊ + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws,actions/toolkit" owned by "lepadatu-actions"␊ ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ ␊ ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ @@ -151,7 +151,7 @@ Generated by [AVA](https://avajs.dev). > stdout - `owner and repositories set, creating token for repositories "lepadatu-org/create-github-app-token-aws" owned by "lepadatu-org"␊ + `owner and repositories set, creating token for repositories "lepadatu-actions/create-github-app-token-aws" owned by "lepadatu-actions"␊ ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ ␊ ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ @@ -170,7 +170,7 @@ Generated by [AVA](https://avajs.dev). > stdout - `repositories not set, creating token for all repositories for given owner "lepadatu-org"␊ + `repositories not set, creating token for all repositories for given owner "lepadatu-actions"␊ ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ ␊ ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ @@ -228,7 +228,7 @@ Generated by [AVA](https://avajs.dev). > stdout - `owner not set, creating owner for given repositories "lepadatu-org/create-github-app-token-aws" in current owner ("lepadatu-org")␊ + `owner not set, creating owner for given repositories "lepadatu-actions/create-github-app-token-aws" in current owner ("lepadatu-actions")␊ ::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ ␊ ::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊ diff --git a/tests/snapshots/index.js.snap b/tests/snapshots/index.js.snap index 6411d8776b452a507eca28c160dc42d1544f435b..db02ead4913837ba141e5cbedb3938e4fa75754a 100644 GIT binary patch literal 1185 zcmV;S1YY|=RzVWL`~^t-0U%D?I3Z5l_%G1R+FnontJq24us+%A z+4sKhz0Z3d?|k2C#wv)+H_reC#_)vj0ELn?gj7So5ke|tnxR=mFu3~I2qSrFP86D_ z&%%%+|LEm~R~PK7^2);N3lQ@r#4Up%Xq_*3RQYUh$xDY7o~8{ElE1$AnpE@mRU!;2 zd=f50aw_7OG=XSHR0l#LB;ll$VWxp}KpUatDtTbQ*`UsbGzdIgU5pabh~TX6r1(6a zqbM;nf-~QliA35!6@hGM=%@&CpF@}Db8XF0XO8yGbrlpjR~hySxs-4rX^f@V4%Tgp%CgN3TRyQ{U*#E7;OvQ0jGc+AKVw1tv3l0+CIWP4=6fA$LgV?~`x z&@NyNsWJkU7GQ`0Tp@u5j@G^lj6A;U;3NePSB5jSn_qy?(F0T@N<4YxUjD&DzaiYi(<7eRBtDn_G9+`QjpD z29T-@(+r8^3B2#z&1b^aj>j=~%_c&|YW21CTN|U6+5kR~=T}+S9!8#`AQ`UeeAp1SK()fF~pQ~0K*(DlT4aeJP)?Y)EJ{Rej&N4xhAKRGx)JbKhP zeE9M1QLhVENRk<}lf(cLRHS;_*}qerO)BxErdo7t$3<}V|H-Cb@BYY`pm5()$c9on zHJLYVTQ{@j^o|ppkE%8x^+o^>0x+igZHtSTYA~si2Fht&PU~5x_1bgDxyn*2*%s}x zIs4n=?2q|4v)UnaaSUSAr{|vg-ga*e;D90j-erymNs6R)jgdWp`&pCh+&^&Big&n( zc{7F*#`$5aO@`6FK}8cTCyem(Lh*MG#a}LO3BG;>39eIzuFk^bK5 z;$ivKgXO30rfQgy{CWYzJi93&Nsws`61!%XhkqHbm59xc7@daLB~7FsJjlKsw{xE~ zoA3ns&=e0V$@0=9(n^TV0itTE40aFA{?!B4sVAGy^TpUH*Oo2Dj$Prc)4(N+XA?s2+qwNW#fsW-<+=2O5QvOXMMfi$Prsi3WJMG#@3{j^JdFr2K!j zL{Wk?f)hU(Mj~w+6@hGP=&1h8tCTXG?3P35u>1vP(XAbil|ybcK?3Cy785vOBWjKYI=Tv8IkC zXt!YvsX}3t7Jvl7ERsM2H#WZ89640lUsR7F-Sdp{5)d_ zhN{e@nIV!V@SaOGTL{}T9>?4rG7&P?Y%QnbJ>6*i-=sC>~+<1;|dmJ@(t%DE^pJzfB;7er)W@#D=2pP%ajX-If zxeO_L+f!Da(DCXvJaspwsw-ojPvIM$LU$I%i`(|ZZEWuz>^!{J-rst#_wnw*-u~nE z-lLDU_WP%Akt7)!>mUe*7)2U)T>QI@^GPM1)KrU}J#7)3{C}$H_j_O!6BO=v3fZZW zPA%rmJ2uUEYkJoS&TXm-hI$sjg8&eVcMrLUsRm4yM5tW4a_O_W^zw74xsFmR**5E{ z`TE=A>yO#^vf3eZ`xr*3sCIq+zI)%E+8n;2K>lYJxG|8VhBU7;vMtO`)*+h@cAZP{ z9v3n1#8AOFJB-cAFxnSJ(S*wh)_qYZ{^p_h%hg!jVp08@MyWUwrn0_Er0v$fqD{%_ zd$oe=%y6~F!eyD#`4~zwiC``tuWvoPzN~q?xLJD)SUiq>xa`HQ=z%0Tq7^t74bJK$ za54ma)ic?j9z4HaBs`d?Ac|q~DAr$8jbZ=&Z-PF8S7}~fdHg-S6#gn`W`^d*NN5}* zgL&%mVfodA<)>nhI!#G_y#(UC6O@o7$g~D&ijWKbH{$gQt=Z9{)6lviC;GvI>$`DN z`Xo;>M=$`Uyb(zj>XRs|Ai4mE8mU54JP13}&C{t*E1&0!v16_+TZ|pJ#@nQUD;UY| zD={+quD_F*Ys17