Skip to content

Commit 627ffc0

Browse files
committed
chore(scan github): sort blocking-error checks alphabetically
1 parent 6886f66 commit 627ffc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/src/commands/scan/create-scan-from-github.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ export async function createScanFromGithub({
134134
// fail for the same reason and continuing only burns more quota
135135
// while delaying the real error.
136136
if (
137-
scanCResult.message === GITHUB_ERR_RATE_LIMIT ||
138-
scanCResult.message === GITHUB_ERR_GRAPHQL_RATE_LIMIT ||
139137
scanCResult.message === GITHUB_ERR_ABUSE_DETECTION ||
140-
scanCResult.message === GITHUB_ERR_AUTH_FAILED
138+
scanCResult.message === GITHUB_ERR_AUTH_FAILED ||
139+
scanCResult.message === GITHUB_ERR_GRAPHQL_RATE_LIMIT ||
140+
scanCResult.message === GITHUB_ERR_RATE_LIMIT
141141
) {
142142
blockingError = {
143143
ok: false,

0 commit comments

Comments
 (0)