Skip to content

Commit 628d79d

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/lambdas/middy/core-7.0.2
2 parents d07d0b9 + 1f9805d commit 628d79d

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## [7.4.1](https://github.com/github-aws-runners/terraform-aws-github-runner/compare/v7.4.0...v7.4.1) (2026-03-09)
4+
5+
6+
### Bug Fixes
7+
8+
* gracefully handle JIT config failures and terminate unconfigured instance ([#4990](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/4990)) ([c171550](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/c17155028fb685fc3afdfe677366f20a64e7c55d))
9+
* **install-runner.sh:** support Debian ([#5027](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5027)) ([7755b7f](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/7755b7f05dff5c9136d4d33cd977ebe2f4e6191c))
10+
* **lambda:** add jti claim to GitHub App JWTs to prevent concurrent collisions ([#5056](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5056)) ([07bd193](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/07bd193c08b40ff47f8bb047d3fe06d0225266f2)), closes [#5025](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5025)
11+
* **lambda:** bump @octokit/auth-app from 8.1.2 to 8.2.0 in /lambdas in the octokit group ([#5035](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5035)) ([1c8083e](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/1c8083eee0844d53c17836558811262c956f921d))
12+
* **lambda:** bump axios from 1.13.2 to 1.13.5 in /lambdas ([#5028](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5028)) ([0335e3a](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/0335e3aa1c087b5a24d22cf0d6144688be85147f))
13+
* **lambda:** bump qs from 6.14.1 to 6.14.2 in /lambdas ([#5032](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5032)) ([6dc97d5](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/6dc97d55d7b01c7c197573843b298236f891cda8))
14+
* **lambda:** bump rollup from 4.46.2 to 4.59.0 in /lambdas ([#5052](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5052)) ([1e798b1](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/1e798b1076be65340ad1e6e711a1ee27d26fe660))
15+
* **lambda:** bump the aws group in /lambdas with 7 updates ([#5021](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5021)) ([c3c158d](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/c3c158de3955693c82a737f88e7066f6304a7298))
16+
* **lambda:** bump the aws-powertools group in /lambdas with 4 updates ([#5022](https://github.com/github-aws-runners/terraform-aws-github-runner/issues/5022)) ([e8369cf](https://github.com/github-aws-runners/terraform-aws-github-runner/commit/e8369cf5b660c344c7bb1e23729236c2779725d2))
17+
318
## [7.4.0](https://github.com/github-aws-runners/terraform-aws-github-runner/compare/v7.3.0...v7.4.0) (2026-02-04)
419

520

lambdas/functions/webhook/src/webhook/index.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function publishForRunners(
2121

2222
const checkBodySizeResult = checkBodySize(body, headers);
2323

24-
const { event, eventType } = readEvent(headers, body);
24+
const { event, eventType } = readEvent(headers, body, ['workflow_job']);
2525
logger.info(`Github event ${event.action} accepted for ${event.repository.full_name}`);
2626
if (checkBodySizeResult.sizeExceeded) {
2727
// We only warn for large event, when moving the event bridge we can only can accept events up to 256KB
@@ -39,11 +39,10 @@ export async function publishOnEventBridge(
3939

4040
await verifySignature(headers, body, config.webhookSecret);
4141

42-
const eventType = headers['x-github-event'] as string;
43-
checkEventIsSupported(eventType, config.allowedEvents);
44-
4542
const checkBodySizeResult = checkBodySize(body, headers);
4643

44+
const { eventType } = readEvent(headers, body, config.allowedEvents);
45+
4746
logger.info(
4847
`Github event ${headers['x-github-event'] as string} accepted for ` +
4948
`${headers['x-github-hook-installation-target-id'] as string}`,
@@ -127,9 +126,13 @@ function checkEventIsSupported(eventType: string, allowedEvents: string[]): void
127126
}
128127
}
129128

130-
function readEvent(headers: IncomingHttpHeaders, body: string): { event: WorkflowJobEvent; eventType: string } {
129+
function readEvent(
130+
headers: IncomingHttpHeaders,
131+
body: string,
132+
allowedEvents: string[],
133+
): { event: WorkflowJobEvent; eventType: string } {
131134
const eventType = headers['x-github-event'] as string;
132-
checkEventIsSupported(eventType, ['workflow_job']);
135+
checkEventIsSupported(eventType, allowedEvents);
133136

134137
const event = JSON.parse(body) as WorkflowJobEvent;
135138
logger.appendPersistentKeys({

0 commit comments

Comments
 (0)