diff --git a/CHANGELOG.md b/CHANGELOG.md index 90ce32ba86..732a1f10fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.9.1] - 2021-01-22 + +### Fixed + +- fix(ghes): Corrects preview option #482 @mcaulifn @samuelb + ## [0.9.0] - 2021-01-21 ### Added @@ -139,7 +145,8 @@ terraform import module.runners.module.webhook.aws_cloudwatch_log_group.webhook - First release. -[unreleased]: https://github.com/philips-labs/terraform-aws-github-runner/compare/v0.9.0..HEAD +[unreleased]: https://github.com/philips-labs/terraform-aws-github-runner/compare/v0.9.1..HEAD +[0.9.1]: https://github.com/philips-labs/terraform-aws-github-runner/releases/tag/v0.9.0..v0.9.1 [0.9.0]: https://github.com/philips-labs/terraform-aws-github-runner/releases/tag/v0.8.1..v0.9.0 [0.8.1]: https://github.com/philips-labs/terraform-aws-github-runner/releases/tag/v0.9.0..v0.8.1 [0.8.0]: https://github.com/philips-labs/terraform-aws-github-runner/releases/tag/v0.7.0..v0.9.0 diff --git a/examples/default/lambdas-download/main.tf b/examples/default/lambdas-download/main.tf index d99cd1d46d..e78d850949 100644 --- a/examples/default/lambdas-download/main.tf +++ b/examples/default/lambdas-download/main.tf @@ -3,15 +3,15 @@ module "lambdas" { lambdas = [ { name = "webhook" - tag = "v0.9.0" + tag = "v0.9.1" }, { name = "runners" - tag = "v0.9.0" + tag = "v0.9.1" }, { name = "runner-binaries-syncer" - tag = "v0.9.0" + tag = "v0.9.1" } ] } diff --git a/examples/permissions-boundary/lambdas-download/main.tf b/examples/permissions-boundary/lambdas-download/main.tf index d99cd1d46d..e78d850949 100644 --- a/examples/permissions-boundary/lambdas-download/main.tf +++ b/examples/permissions-boundary/lambdas-download/main.tf @@ -3,15 +3,15 @@ module "lambdas" { lambdas = [ { name = "webhook" - tag = "v0.9.0" + tag = "v0.9.1" }, { name = "runners" - tag = "v0.9.0" + tag = "v0.9.1" }, { name = "runner-binaries-syncer" - tag = "v0.9.0" + tag = "v0.9.1" } ] } diff --git a/modules/download-lambda/README.md b/modules/download-lambda/README.md index 00e40c3d17..1a19598416 100644 --- a/modules/download-lambda/README.md +++ b/modules/download-lambda/README.md @@ -10,15 +10,15 @@ module "lambdas" { lambdas = [ { name = "webhook" - tag = "v0.9.0" + tag = "v0.9.1" }, { name = "runners" - tag = "v0.9.0" + tag = "v0.9.1" }, { name = "runner-binaries-syncer" - tag = "v0.9.0" + tag = "v0.9.1" } ] } diff --git a/modules/runners/lambdas/runners/src/scale-runners/gh-auth.test.ts b/modules/runners/lambdas/runners/src/scale-runners/gh-auth.test.ts index 025880e38f..64737fbfff 100644 --- a/modules/runners/lambdas/runners/src/scale-runners/gh-auth.test.ts +++ b/modules/runners/lambdas/runners/src/scale-runners/gh-auth.test.ts @@ -41,6 +41,7 @@ describe('Test createGithubAuth', () => { // Assert expect(result.request.endpoint.DEFAULTS.baseUrl).toBe(enterpriseServer); + expect(result.request.endpoint.DEFAULTS.mediaType.previews).toStrictEqual(['antiope']); }); }); diff --git a/modules/runners/lambdas/runners/src/scale-runners/gh-auth.ts b/modules/runners/lambdas/runners/src/scale-runners/gh-auth.ts index 01dc3cfa68..ae3720e07f 100644 --- a/modules/runners/lambdas/runners/src/scale-runners/gh-auth.ts +++ b/modules/runners/lambdas/runners/src/scale-runners/gh-auth.ts @@ -11,6 +11,7 @@ export async function createOctoClient(token: string, ghesApiUrl: string = ''): }; if (ghesApiUrl) { ocktokitOptions.baseUrl = ghesApiUrl; + ocktokitOptions.previews = ['antiope']; } return new Octokit(ocktokitOptions); } @@ -51,7 +52,6 @@ export async function createGithubAuth( if (ghesApiUrl) { authOptions.request = request.defaults({ baseUrl: ghesApiUrl, - mediaType: { previews: ['antiope'] } }); } return await createAppAuth(authOptions)({ type: authType });