mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 04:05:29 +00:00
fix: harden mattermost auth bypass + labeler
This commit is contained in:
committed by
Muhammed Mukhthar CM
parent
b0d703158f
commit
4f99f0e663
7
.github/workflows/labeler.yml
vendored
7
.github/workflows/labeler.yml
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user