Check for 403 status

This commit is contained in:
Michael B. Gale
2025-10-29 08:35:19 +00:00
parent 194ba0ee2d
commit 52a7bd7b6e
7 changed files with 7 additions and 7 deletions

2
lib/analyze-action.js generated
View File

@@ -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)
);

View File

@@ -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)
);

2
lib/init-action.js generated
View File

@@ -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)
);

View File

@@ -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)
);

2
lib/upload-lib.js generated
View File

@@ -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)
);

View File

@@ -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)
);

View File

@@ -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),
);