-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
.vscode/settings.json
Outdated
@@ -6,5 +6,6 @@ | |||
], | |||
"java.saveActions.organizeImports": true, | |||
"java.maven.downloadSources": false, | |||
"editor.formatOnSave": true | |||
"editor.formatOnSave": true, | |||
"java.compile.nullAnalysis.mode": "disabled" |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use try-with-resources
|
||
var response = client.send(request, HttpResponse.BodyHandlers.ofString()); | ||
if (response.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) { | ||
System.out.println("enable dependabot is success: " + response.statusCode()); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
24112d5
to
b172339
Compare
No description provided.