-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add verify with fallback #134
Conversation
secret, | ||
eventPayload, | ||
signatureSHA256, | ||
["foo"] |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
||
test("verifyWithFallback(bogus, eventPayload, signatureSHA256, [secret]) returns true", async () => { | ||
const signatureMatches = await verifyWithFallback( | ||
"foo", |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
||
test("verify(bogus, eventPayload, signatureSHA256, [bogus]) returns false", async () => { | ||
const signatureMatches = await verifyWithFallback( | ||
"foo", |
Check failure
Code scanning / CodeQL
Hard-coded credentials
"foo", | ||
eventPayload, | ||
signatureSHA256, | ||
["foo"] |
Check failure
Code scanning / CodeQL
Hard-coded credentials
Looks like this build is failing only due to a code formatting issue that can be easily resolved! |
This method wraps the (still exported) verify method.
ef3a10c
to
0f66ee1
Compare
🎉 This PR is included in version 3.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Preparatory work for a second attempt at octokit/webhooks.js#811 .
Behavior
See octokit/webhooks.js#770 and octokit/webhooks.js#811 .
Additional info
Pull request checklist
I am unable to add labels.
Does this introduce a breaking change?