mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 19:50:32 +08:00
Check for 403 status
This commit is contained in:
@@ -318,7 +318,7 @@ export function wrapApiConfigurationError(e: unknown) {
|
||||
"Please check that your token is valid and has the required permissions: contents: read, security-events: write",
|
||||
);
|
||||
}
|
||||
if (isEnablementError(httpError.message)) {
|
||||
if (httpError.status === 403 && isEnablementError(httpError.message)) {
|
||||
return new ConfigurationError(
|
||||
getFeatureEnablementError(httpError.message),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user