Repository navigation
refactor(storage): extract webhook configuration stores - #5278
Merged
Merged
Conversation
Contributor
Dependency ReviewThe following issues were found:
License Issueslambdas/functions/webhook/package.json
OpenSSF Scorecard
Scanned Files
|
edersonbrilhante
force-pushed
the
refactor-runner-config-storage-provider
branch
from
August 19, 2026 13:59
4726813 to
c2a8566
Compare
edersonbrilhante
force-pushed
the
refactor-webhook-matcher-config-storage
branch
from
August 19, 2026 14:13
0150fb2 to
365ec35
Compare
edersonbrilhante
force-pushed
the
refactor-runner-config-storage-provider
branch
from
August 19, 2026 15:04
c2a8566 to
47b53cb
Compare
edersonbrilhante
force-pushed
the
refactor-runner-config-storage-provider
branch
from
September 3, 2026 12:01
47b53cb to
ce6a33c
Compare
edersonbrilhante
force-pushed
the
refactor-webhook-matcher-config-storage
branch
from
September 3, 2026 13:09
365ec35 to
ccdd653
Compare
edersonbrilhante
force-pushed
the
refactor-runner-config-storage-provider
branch
3 times, most recently
from
September 4, 2026 11:19
dea22a1 to
2bbceef
Compare
guicaulada
reviewed
Sep 8, 2026
Base automatically changed from
refactor-runner-config-storage-provider
to
main
September 8, 2026 14:29
edersonbrilhante
force-pushed
the
refactor-webhook-matcher-config-storage
branch
from
September 8, 2026 20:42
ccdd653 to
1e91aa2
Compare
edersonbrilhante
marked this pull request as ready for review
September 18, 2026 20:53
edersonbrilhante
enabled auto-merge (squash)
September 18, 2026 21:09
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Refactors webhook configuration access behind provider-neutral storage interfaces, with AWS SSM implementations.
Changes:
- Adds matcher-config and webhook-secret storage contracts and selectors.
- Moves SSM loading and error handling into storage adapters.
- Updates webhook code, tests, dependencies, and environment declarations.
| File | Description |
|---|---|
lambdas/yarn.lock |
Updates dependency resolution. |
lambdas/libs/storage-providers/vitest.config.ts |
Includes new stores in coverage. |
lambdas/libs/storage-providers/runner-matcher-config.ts |
Selects matcher-config providers. |
lambdas/libs/storage-providers/runner-matcher-config.test.ts |
Tests provider selection. |
lambdas/libs/storage-providers/index.ts |
Exports storage contracts and selectors. |
lambdas/libs/storage-providers/github-webhook-secret.ts |
Selects webhook-secret providers. |
lambdas/libs/storage-providers/github-webhook-secret.test.ts |
Tests provider selection. |
lambdas/libs/storage-providers/core/index.ts |
Defines storage interfaces. |
lambdas/libs/storage-providers/aws/ssm/runner-matcher-config-store.ts |
Implements SSM matcher-config loading. |
lambdas/libs/storage-providers/aws/ssm/runner-matcher-config-store.test.ts |
Tests matcher-config behavior. |
lambdas/libs/storage-providers/aws/ssm/github-webhook-secret-store.ts |
Implements SSM webhook-secret loading. |
lambdas/libs/storage-providers/aws/ssm/github-webhook-secret-store.test.ts |
Tests webhook-secret behavior. |
lambdas/libs/storage-providers/aws/ssm/environment.d.ts |
Declares SSM environment variables. |
lambdas/functions/webhook/src/webhook/index.test.ts |
Updates tests to use storage mocks. |
lambdas/functions/webhook/src/runners/dispatch.test.ts |
Updates matcher-store mocks. |
lambdas/functions/webhook/src/modules.d.ts |
Removes SSM-specific declarations. |
lambdas/functions/webhook/src/lambda.test.ts |
Updates wrapper tests. |
lambdas/functions/webhook/src/ConfigLoader.ts |
Loads configuration through storage stores. |
lambdas/functions/webhook/src/ConfigLoader.test.ts |
Updates configuration-loader tests. |
lambdas/functions/webhook/package.json |
Replaces the direct SSM dependency. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Brend-Smits
approved these changes
Sep 22, 2026
edersonbrilhante
deleted the
refactor-webhook-matcher-config-storage
branch
September 22, 2026 11:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
RunnerMatcherConfigStoreandGitHubWebhookSecretStorecapabilities selected through the existing runner-config storage provideraws-ssm-utildependencyThis is a stacked PR based on #5277. It contains no Terraform or termination-watcher changes.
Test Plan
storage-providersandwebhookyarn install --immutablegit diff --checkRelated Issues