Skip to content

Commit

Permalink
fix: use better URL in private key format error
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jul 9, 2023
1 parent c8021a2 commit 1f67ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export async function getToken({ privateKey, payload }) {
/* c8 ignore start */
if (isPkcs1(convertedPrivateKey)) {
throw new Error(
"[universal-github-app-jwt] Private Key is in PKCS#1 format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#readme"
"[universal-github-app-jwt] Private Key is in PKCS#1 format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats"
);
}
/* c8 ignore stop */

// WebCrypto does not support OpenSSH, unfortunately
if (isOpenSsh(convertedPrivateKey)) {
throw new Error(
"[universal-github-app-jwt] Private Key is in OpenSSH format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#readme"
"[universal-github-app-jwt] Private Key is in OpenSSH format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats"
);
}

Expand Down

0 comments on commit 1f67ee2

Please sign in to comment.