File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ async function importKey(secret: string) {
26
26
{
27
27
// algorithm details
28
28
name : "HMAC" ,
29
- hash : { name : "sha256 " } ,
29
+ hash : { name : "SHA256 " } ,
30
30
} ,
31
31
false , // export = false
32
32
[ "sign" , "verify" ] , // what this key can do
@@ -44,7 +44,7 @@ export async function sign(secret: string, payload: string): Promise<string> {
44
44
throw new TypeError ( "[@octokit/webhooks-methods] payload must be a string" ) ;
45
45
}
46
46
47
- const algorithm = "sha256 " ;
47
+ const algorithm = "SHA256 " ;
48
48
const signature = await crypto . subtle . sign (
49
49
"HMAC" ,
50
50
await importKey ( secret ) ,
@@ -71,7 +71,7 @@ export async function verify(
71
71
) ;
72
72
}
73
73
74
- const algorithm = "sha256 " ;
74
+ const algorithm = "SHA256 " ;
75
75
return await crypto . subtle . verify (
76
76
"HMAC" ,
77
77
await importKey ( secret ) ,
You can’t perform that action at this time.
0 commit comments