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

Add vulnerability check to overview #133

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

ivy-jh
Copy link
Contributor

@ivy-jh ivy-jh commented Dec 2, 2024

No description provided.

@ivy-jh ivy-jh requested a review from alexsuter December 3, 2024 11:39
@@ -6,5 +6,6 @@
],
"java.saveActions.organizeImports": true,
"java.maven.downloadSources": false,
"editor.formatOnSave": true
"editor.formatOnSave": true,
"java.compile.nullAnalysis.mode": "disabled"
Copy link
Member

Choose a reason for hiding this comment

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

disabled by intention?

} catch (Exception e) {
System.out.println(e);
} finally {
client.close();
Copy link
Member

Choose a reason for hiding this comment

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


var response = client.send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {
System.out.println("enable dependabot is success: " + response.statusCode());
Copy link
Member

Choose a reason for hiding this comment

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

insteaad of using system out. also use a logger here.

System.out.println("enable dependabot is failed: " + response.statusCode());
}
} catch (Exception e) {
System.out.println(e);
Copy link
Member

Choose a reason for hiding this comment

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

also print this exception with a logger

@ivy-jh ivy-jh requested a review from alexsuter December 3, 2024 14:05
Copy link
Member

@alexsuter alexsuter left a comment

Choose a reason for hiding this comment

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

:)

@ivy-jh ivy-jh force-pushed the XIVY-15521-check-vulnerability-alerts branch from 24112d5 to b172339 Compare December 3, 2024 14:27
@ivy-jh ivy-jh merged commit 83ebd46 into master Dec 3, 2024
5 checks passed
@ivy-jh ivy-jh deleted the XIVY-15521-check-vulnerability-alerts branch December 3, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants