Gathering detailed insights and metrics for @octokit/webhooks-methods
Gathering detailed insights and metrics for @octokit/webhooks-methods
Gathering detailed insights and metrics for @octokit/webhooks-methods
Gathering detailed insights and metrics for @octokit/webhooks-methods
npm install @octokit/webhooks-methods
99.3
Supply Chain
99.5
Quality
85.7
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
23 Stars
313 Commits
9 Forks
4 Watching
4 Branches
18 Contributors
Updated on 05 Nov 2024
TypeScript (79.13%)
JavaScript (20.87%)
Cumulative downloads
Total Downloads
Last day
-30.9%
155,139
Compared to previous day
Last week
0%
1,125,122
Compared to previous week
Last month
2.6%
4,783,839
Compared to previous month
Last year
113.9%
38,659,079
Compared to previous year
Methods to handle GitHub Webhook requests
Browsers |
🚧 Load
|
---|---|
Node |
Install with
|
1await sign("mysecret", eventPayloadString); 2// resolves with a string like "sha256=4864d2759938a15468b5df9ade20bf161da9b4f737ea61794142f3484236bda3" 3 4await verify("mysecret", eventPayloadString, "sha256=486d27..."); 5// resolves with true or false 6 7await verifyWithFallback("mysecret", eventPayloadString, "sha256=486d27...", ["oldsecret", ...]); 8// resolves with true or false
sign()
1await sign(secret, eventPayloadString);
secret
(String)
| Required. Secret as configured in GitHub Settings. |
eventPayloadString
(String)
|
Required.
Webhook request payload as received from GitHub. If you have only access to an already parsed object, stringify it with JSON.stringify(payload)
|
Resolves with a signature
string. Throws an error if an argument is missing.
verify()
1await verify(secret, eventPayloadString, signature);
secret
(String)
| Required. Secret as configured in GitHub Settings. |
eventPayloadString
(String)
|
Required.
Webhook request payload as received from GitHub. If you have only access to an already parsed object, stringify it with JSON.stringify(payload)
|
signature
(String)
|
Required.
Signature string as calculated by sign() .
|
Resolves with true
or false
. Throws error if an argument is missing.
verifyWithFallback()
1await verifyWithFallback( 2 secret, 3 eventPayloadString, 4 signature, 5 additionalSecrets, 6);
secret
(String)
| Required. Secret as configured in GitHub Settings. |
eventPayloadString
(String)
|
Required.
Webhook request payload as received from GitHub. If you have only access to an already parsed object, stringify it with JSON.stringify(payload)
|
signature
(String)
|
Required.
Signature string as calculated by sign() .
|
additionalSecrets
(Array of String)
| If given, each additional secret will be tried in turn. |
This is a thin wrapper around verify()
that is intended to ease callers' support for key rotation.
Resolves with true
or false
. Throws error if a required argument is missing.
See CONTRIBUTING.md
No vulnerabilities found.
Reason
14 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
security policy file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More