Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode | Fix UI Freezing and Unclickable Icons (AST-70028) #1006

Merged
merged 11 commits into from
Dec 3, 2024

Conversation

AlvoBen
Copy link
Contributor

@AlvoBen AlvoBen commented Dec 1, 2024

By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

Fix bug of unclickable icons - give user indication that their apikey is invalid.

References

https://checkmarx.atlassian.net/browse/AST-70028

Testing

X

Checklist

  • I have added documentation for new/changed functionality in this PR (if applicable).
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used

@github-actions github-actions bot added the bug Something isn't working label Dec 1, 2024
Copy link
Contributor

github-actions bot commented Dec 1, 2024

Logo
Checkmarx One – Scan Summary & Detailsba9aae09-78d3-4456-a5d1-54d68d6ba242

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CVE-2024-6531 Npm-bootstrap-5.0.2 Vulnerable Package

Fixed Issues

Severity Issue Source File / Package
HIGH Cxf6e7f2c1-dc59 Npm-yauzl-2.10.0
MEDIUM CVE-2024-4067 Npm-micromatch-4.0.5

src/cx/cx.ts Outdated Show resolved Hide resolved
src/cx/cx.ts Outdated
@@ -253,7 +253,9 @@ export class Cx implements CxPlatform {
try {
enabled = await cx.ideScansEnabled();
} catch (error) {
logs.error(error);
const errMsg = `Error checking tenant configuration: ${error}`;
vscode.window.showErrorMessage("Provided Checkmarx One API KEY is invalid");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't it be that we get another issue? (it can be even network issue...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I need to talk about it with Daniel

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have an error code the indicate the reason for the error?
if yes we can use it

src/utils/listener/listeners.ts Outdated Show resolved Hide resolved
src/cx/cx.ts Outdated
return false;
}
} catch (error) {
logs.error(`${invalidAPIKeyMsg}: ${error}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we got exit code != 0, it means that apikey is invalid
but if we catch an exception it means other issue happened, could be not related to apikey itself
no?

src/cx/cx.ts Outdated
}
} catch (error) {
logs.error(`${invalidAPIKeyMsg}: ${error}`);
vscode.window.showErrorMessage(invalidAPIKeyMsg);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

src/utils/listener/listeners.ts Show resolved Hide resolved
src/cx/cx.ts Show resolved Hide resolved
@AlvoBen AlvoBen changed the title VSCode | Log Error when tenant configuration check failed (AST-70028) VSCode | Fix UI Freezing and Unclickable Icons (AST-70028) Dec 3, 2024
miryamfoiferCX
miryamfoiferCX previously approved these changes Dec 3, 2024
@AlvoBen AlvoBen merged commit 46bbf2f into main Dec 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants