You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🩹 [Patch]: Enhance Test-GitHubWebhookSignature to support a full request object + Context bump (#482)
## Description
This pull request introduces several updates across multiple files,
focusing on enhancing functionality, improving documentation, and
updating dependencies. The most significant changes include updates to
the `Test-GitHubWebhookSignature` function for better flexibility and
security and the upgrade of required module versions.
### Functional Updates
* `Test-GitHubWebhookSignature`:
- Added support for validating webhook requests using the entire
`Request` object, enabling automatic extraction of body and headers.
- Updated descriptions to clarify the use of SHA-256 and added examples
demonstrating validation with the `Request` object.
### Dependency Updates
- Updated `#Requires` statements across multiple files to require
version `8.1.1` of the `Context` module. The update fixes an issue where
the GitHub module attempted to save a context with null values would
throw a null-pointer exception.
### Test Enhancements
- Expanded test coverage for `Test-GitHubWebhookSignature`, including
scenarios for valid signatures, invalid signatures, and missing headers
in the `Request` object.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [ ] 🚀 [Feature]
- [ ] 🌟 [Breaking change]
## Checklist
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
0 commit comments