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

chore: add missing CHANGELOG IaC via LS #511

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Snyk Security Changelog

## [2.17.0]
- render IaC via Language Server

## [2.16.3]
- fix readability of `code` elements within the **overview** section when using high-contrast themes (both dark and light). Text color now matches the background.

Expand Down
8 changes: 6 additions & 2 deletions src/snyk/base/services/authenticationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@ export class AuthenticationService implements IAuthenticationService {
oauthToken.access_token.length > 0 &&
Date.parse(oauthToken.expiry) > Date.now() &&
oauthToken.refresh_token.length > 0;
this.logger.debug(`Token ${token} parsed`);
this.logger.debug(`Token ${this.maskToken(token)} parsed`);
} catch (e) {
this.logger.warn(`Token ${token} is not a valid uuid or json string: ${e}`);
this.logger.warn(`Token ${this.maskToken(token)} is not a valid uuid or json string: ${e}`);
}
return valid;
}

private maskToken(token: string): string {
return `${token.slice(0, 4)}****${token.slice(-4)}`;
}

async updateToken(token: string): Promise<void> {
if (!token) {
await this.initiateLogout();
Expand Down
Loading