mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 16:58:47 +00:00
Check for 403 status
This commit is contained in:
Generated
+1
-1
@@ -83647,7 +83647,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)
|
||||
);
|
||||
|
||||
Generated
+1
-1
@@ -116784,7 +116784,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)
|
||||
);
|
||||
|
||||
Generated
+1
-1
@@ -80952,7 +80952,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)
|
||||
);
|
||||
|
||||
Generated
+1
-1
@@ -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)
|
||||
);
|
||||
|
||||
Generated
+1
-1
@@ -82172,7 +82172,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)
|
||||
);
|
||||
|
||||
Generated
+1
-1
@@ -82217,7 +82217,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