fix: include redacted token revocation errors

Co-authored-by: parkerbxyz <17183625+parkerbxyz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]andparkerbxyz authored and GitHub committed 2026-10-12 23:48:40 +00:00
1 parent de243d6818
commit aeb28a5369
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -33,7 +33,9 @@ export async function post(core, request) {
});
core.info("Token revoked");
} catch (error) {
core.warning(`Token revocation failed: ${error.message}`);
core.warning(
`Token revocation failed: ${error.message.replaceAll(token, "***")}`,
);
}
}
+1 -1
View File
@@ -514,7 +514,7 @@ exports[`post-proxy-requires-native-support.test.js > stdout 1`] = `
`;
exports[`post-revoke-token-fail-response.test.js > stdout 1`] = `
::warning::Token revocation failed:
::warning::Token revocation failed: Internal Server Error
`;
exports[`post-token-expired.test.js > stdout 1`] = `
@@ -28,6 +28,6 @@ mockPool
authorization: "token secret123",
},
})
.reply(401);
.replyWithError(new Error("Internal Server Error"));
await import("../post.js");