fix: harden mattermost auth bypass + labeler

This commit is contained in:
Echo
2026-02-15 12:01:10 -05:00
committed by Muhammed Mukhthar CM
parent b0d703158f
commit 4f99f0e663
3 changed files with 29 additions and 10 deletions

View File

@@ -284,7 +284,12 @@ jobs:
});
isMaintainer = membership?.data?.state === "active";
} catch (error) {
if (error?.status !== 404) {
// GITHUB_TOKEN may not have org/team read perms; treat permission errors as non-fatal.
if (error?.status === 404) {
// ignore
} else if (error?.status === 403) {
core.warning(`Skipping team membership check for ${login}; missing permissions.`);
} else {
throw error;
}
}