mirror of
https://github.com/actions/create-github-app-token.git
synced 2026-12-04 15:19:05 +00:00
fix: include redacted token revocation errors
Co-authored-by: parkerbxyz <17183625+parkerbxyz@users.noreply.github.com>
This commit is contained in:
1 parent
de243d6818
commit
aeb28a5369
3 files changed
+5
-3
No files matched your search
+3
-1
@@ -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, "***")}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
Reference in new issue
Block a user