Skip to content

Commit

Permalink
Fix bad SAML check (#6557)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 authored Dec 17, 2024
1 parent 732e03b commit 8eacb79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/github/githubRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1491,9 +1491,10 @@ export class GitHubRepository extends Disposable {
name: remote.repositoryName,
number: number,
},
}, true); // There's an issue with the GetChecks that can result in SAML errors.
});
} catch (e) {
if (isSamlError(e.message)) {
// There's an issue with the GetChecks that can result in SAML errors.
if (isSamlError(e)) {
// There seems to be an issue with fetching status checks if you haven't SAML'd with every org you have
// The issue is specifically with the CheckSuite property. Make the query again, but without that property.
if (!captureUseFallbackChecks) {
Expand Down

0 comments on commit 8eacb79

Please sign in to comment.