Skip to content

Test#4

Open
antoine-vinot-sonarsource wants to merge 1 commit intomasterfrom
severity-test
Open

Test#4
antoine-vinot-sonarsource wants to merge 1 commit intomasterfrom
severity-test

Conversation

@antoine-vinot-sonarsource
Copy link
Owner

No description provided.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)
E Reliability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint


private static void doVulnerableCode(boolean bool, String output) throws SQLException {
if (bool && output.equals("test")) {
DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", "");

Check failure

Code scanning / SonarCloud

A secure password should be used when connecting to a database

<!--SONAR_ISSUE_KEY:AY3Fw-ggiDLXXRG5HpId-->Add password protection to this database. <p>See more on <a href="https://sonarcloud.io/project/issues?id=antoine-vinot-sonarsource_CodeScanningSample&issues=AY3Fw-ggiDLXXRG5HpId&open=AY3Fw-ggiDLXXRG5HpId&pullRequest=4">SonarCloud</a></p>

private static void doVulnerableCode(String output) throws SQLException {

Connection conn = DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", "");

Check failure

Code scanning / SonarCloud

A secure password should be used when connecting to a database

<!--SONAR_ISSUE_KEY:AY3Fw-ggiDLXXRG5HpIe-->Add password protection to this database. <p>See more on <a href="https://sonarcloud.io/project/issues?id=antoine-vinot-sonarsource_CodeScanningSample&issues=AY3Fw-ggiDLXXRG5HpIe&open=AY3Fw-ggiDLXXRG5HpIe&pullRequest=4">SonarCloud</a></p>
@ghost
Copy link

ghost commented Jun 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint


private static void doVulnerableCode(boolean bool, String output) throws SQLException {
if (bool && output.equals("test")) {
DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", "");

Check failure

Code scanning / SonarCloudsquad-3

A secure password should be used when connecting to a database

<!--SONAR_ISSUE_KEY:AY_jg32RrPNksJJcSqk_-->Add password protection to this database. <p>See more on <a href="https://squad-3-core.sc-dev.io/project/issues?id=antoine-vinot-sonarsource_CodeScanningSample&issues=AY_jg32RrPNksJJcSqk_&open=AY_jg32RrPNksJJcSqk_&pullRequest=4">SonarCloud</a></p>

private static void doVulnerableCode(String output) throws SQLException {

Connection conn = DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", "");

Check failure

Code scanning / SonarCloudsquad-3

A secure password should be used when connecting to a database

<!--SONAR_ISSUE_KEY:AY_jg32RrPNksJJcSqlA-->Add password protection to this database. <p>See more on <a href="https://squad-3-core.sc-dev.io/project/issues?id=antoine-vinot-sonarsource_CodeScanningSample&issues=AY_jg32RrPNksJJcSqlA&open=AY_jg32RrPNksJJcSqlA&pullRequest=4">SonarCloud</a></p>

private static void doVulnerableCode(boolean bool, String output) throws SQLException {
if (bool && output.equals("test")) {
DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", "");

Check failure

Code scanning / SonarCloudDev

A secure password should be used when connecting to a database

<!--SONAR_ISSUE_KEY:AZJXufaRCPbxHiHE8izV-->Add password protection to this database. <p>See more on <a href="https://dev.sc-dev.io/project/issues?id=antoine-vinot-sonarsource_CodeScanningSample&issues=AZJXufaRCPbxHiHE8izV&open=AZJXufaRCPbxHiHE8izV&pullRequest=4">SonarCloud</a></p>

private static void doVulnerableCode(String output) throws SQLException {

Connection conn = DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", "");

Check failure

Code scanning / SonarCloudDev

A secure password should be used when connecting to a database

<!--SONAR_ISSUE_KEY:AZJXufaRCPbxHiHE8izW-->Add password protection to this database. <p>See more on <a href="https://dev.sc-dev.io/project/issues?id=antoine-vinot-sonarsource_CodeScanningSample&issues=AZJXufaRCPbxHiHE8izW&open=AZJXufaRCPbxHiHE8izW&pullRequest=4">SonarCloud</a></p>
@sonarqube-cloud-dev
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

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.

1 participant