mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Check for 403 status
This commit is contained in:
2
lib/setup-codeql-action.js
generated
2
lib/setup-codeql-action.js
generated
@@ -79301,7 +79301,7 @@ function wrapApiConfigurationError(e) {
|
||||
"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