Commit 1f9805d
authored
refactor(webhook): add persistent keys in logs (#5030)
## Summary
Update `publishOnEventBridge` to use the existing `readEvent` helper
instead of directly reading the `x-github-event` header and calling
`checkEventIsSupported`.
Only `eventType` is destructured from `readEvent`, since the parsed
event object isn’t needed.
## Why
This makes the EventBridge path consistent with `publishForRunners`,
ensuring persistent logging fields (repository, action, workflow job
name, status, etc.) are added to the logger in both code paths.
## Impact
* No functional changes
* Consistent logging behavior
* Removes duplicate event parsing logic1 parent d5efde5 commit 1f9805d
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 42 | | |
46 | 43 | | |
| 44 | + | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | | - | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
0 commit comments