From b938e9f0cc693d8a4aa7c57924b4747a3da35bd4 Mon Sep 17 00:00:00 2001 From: HonestJim Date: Mon, 9 Sep 2024 22:45:12 -0400 Subject: [PATCH 1/2] Update DashboardControllerTest.java --- DashboardControllerTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/DashboardControllerTest.java b/DashboardControllerTest.java index 3b1f77e..5b78cae 100644 --- a/DashboardControllerTest.java +++ b/DashboardControllerTest.java @@ -20,6 +20,7 @@ import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.web.context.WebApplicationContext; /* I am a comment */ +/* I am a comment */ From 5e285d3a116804d7afb02561c4523578598c9055 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 10 Sep 2024 02:45:36 +0000 Subject: [PATCH 2/2] Adding license findings via GitHub Actions --- ...dControllerTest.java-snippet-analysis.json | 134 ++++++++---------- snippet-analysis.sarif | 71 ++++------ 2 files changed, 81 insertions(+), 124 deletions(-) diff --git a/.snippet-licenses/DashboardControllerTest.java-snippet-analysis.json b/.snippet-licenses/DashboardControllerTest.java-snippet-analysis.json index c9d40ca..6f5f4df 100644 --- a/.snippet-licenses/DashboardControllerTest.java-snippet-analysis.json +++ b/.snippet-licenses/DashboardControllerTest.java-snippet-analysis.json @@ -16,7 +16,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 21 @@ -40,7 +40,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 3 @@ -65,7 +65,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 21 @@ -114,7 +114,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 3 @@ -125,26 +125,26 @@ } }, { - "projectName": "skprasadu/spring-mvc-rest", - "releaseVersion": "20121022-snapshot-eb316d47", + "projectName": "OPUS-College", + "releaseVersion": "20170308-snapshot-a0bb2480", "licenseDefinition": { "name": "Unknown License", "ownership": "UNKNOWN", "licenseDisplayName": "Unknown License" }, - "matchedFilePath": "/spring-mvc-rest-eb316d47550da824fdd4bdeff7f2454b53df4f33/src/test/java/com/goSmarter/activiti/loanrequest/web/LoanRequestControllerWithSpringTestMvcTest.java", + "matchedFilePath": "/college/src/test/java/org/uci/opus/college/web/flow/StudentPersonalEditControllerTest.java", "regions": { "sourceStartLines": [ - 4 + 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ - 15 + 3 ], "matchedEndLines": [ - 38 + 24 ] } } @@ -162,7 +162,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 20 @@ -184,7 +184,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 20 @@ -206,7 +206,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 19 @@ -216,28 +216,6 @@ ] } }, - { - "projectName": "naver/pinpoint", - "releaseVersion": "1.6.1-RC1", - "licenseDefinition": { - "licenseDisplayName": "(libxml2 License AND GNU General Public License v2.0 or later AND Apache License 2.0 AND MIT License AND Creative Commons Public Domain Dedication and Certification AND Public Domain)" - }, - "matchedFilePath": "/pinpoint-ec5ac8936a86c6a78058ea61e17c72b149417e85/web/src/test/java/com/navercorp/pinpoint/web/controller/UserGroupControllerTest.java", - "regions": { - "sourceStartLines": [ - 3 - ], - "sourceEndLines": [ - 28 - ], - "matchedStartLines": [ - 20 - ], - "matchedEndLines": [ - 59 - ] - } - }, { "projectName": "MeV", "releaseVersion": "v0.0.1", @@ -253,7 +231,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 4 @@ -278,7 +256,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 4 @@ -289,24 +267,24 @@ } }, { - "projectName": "OpenESPI-ThirdParty-java", - "releaseVersion": "tesla_rc3c", + "projectName": "naver/pinpoint", + "releaseVersion": "1.6.1-RC1", "licenseDefinition": { - "licenseDisplayName": "(Common Public License 1.0 AND GNU General Public License v2.0 or later AND Apache License 2.0 AND W3C Software Notice and License (2002-12-31) AND Mozilla Public License 2.0 AND GNU Lesser General Public License v2.1 or later AND Eclipse Public License 1.0)" + "licenseDisplayName": "(libxml2 License AND GNU General Public License v2.0 or later AND Apache License 2.0 AND MIT License AND Creative Commons Public Domain Dedication and Certification AND Public Domain)" }, - "matchedFilePath": "/OpenESPI-ThirdParty-java-tesla_rc3c/src/test/java/org/energyos/espi/thirdparty/integration/MeterReadingTests.java", + "matchedFilePath": "/pinpoint-ec5ac8936a86c6a78058ea61e17c72b149417e85/web/src/test/java/com/navercorp/pinpoint/web/controller/UserGroupControllerTest.java", "regions": { "sourceStartLines": [ 3 ], "sourceEndLines": [ - 28 + 20 ], "matchedStartLines": [ - 19 + 20 ], "matchedEndLines": [ - 41 + 44 ] } } @@ -377,7 +355,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 4 @@ -479,7 +457,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 4 @@ -579,7 +557,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 3 @@ -604,7 +582,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 10 @@ -629,7 +607,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 10 @@ -654,7 +632,7 @@ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ 5 @@ -715,24 +693,24 @@ } }, { - "projectName": "Thymeleaf", - "releaseVersion": "thymeleafexamples-petclinic-20130317", + "projectName": "Spring Security", + "releaseVersion": "4.0.0.RC2", "licenseDefinition": { "name": "Apache License 2.0", "spdxId": "Apache-2.0", "ownership": "OPEN_SOURCE", "licenseDisplayName": "Apache License 2.0" }, - "matchedFilePath": "/thymeleafexamples-petclinic-7683632008afdaadac164ebce77bada8906fd123/src/test/java/org/springframework/samples/petclinic/web/VisitsViewTest.java", + "matchedFilePath": "/spring-security-bbce00b4a66193891700c57922d253190844e76d/config/src/test/java/org/springframework/security/config/annotation/web/configuration/WebMvcSecurityConfigurationTests.java", "regions": { "sourceStartLines": [ 3 ], "sourceEndLines": [ - 28 + 21 ], "matchedStartLines": [ - 20 + 18 ], "matchedEndLines": [ 46 @@ -740,65 +718,65 @@ } }, { - "projectName": "eugenp/tutorials", - "releaseVersion": "20180822-snapshot-387f9e7e", + "projectName": "Thymeleaf", + "releaseVersion": "thymeleafexamples-petclinic-20130317", "licenseDefinition": { - "name": "MIT License", - "spdxId": "MIT", + "name": "Apache License 2.0", + "spdxId": "Apache-2.0", "ownership": "OPEN_SOURCE", - "licenseDisplayName": "MIT License" + "licenseDisplayName": "Apache License 2.0" }, - "matchedFilePath": "/tutorials-387f9e7e526c46097d7216127d3f12cf0ae7a138/spring-thymeleaf/src/test/java/com/baeldung/thymeleaf/controller/FragmentsIntegrationTest.java", + "matchedFilePath": "/thymeleafexamples-petclinic-7683632008afdaadac164ebce77bada8906fd123/src/test/java/org/springframework/samples/petclinic/web/VisitsViewTest.java", "regions": { "sourceStartLines": [ 3 ], "sourceEndLines": [ - 28 + 29 ], "matchedStartLines": [ - 5 + 20 ], "matchedEndLines": [ - 31 + 46 ] } }, { - "projectName": "Spring Security", - "releaseVersion": "4.0.0", + "projectName": "eugenp/tutorials", + "releaseVersion": "20180822-snapshot-387f9e7e", "licenseDefinition": { - "name": "Apache License 2.0", - "spdxId": "Apache-2.0", + "name": "MIT License", + "spdxId": "MIT", "ownership": "OPEN_SOURCE", - "licenseDisplayName": "Apache License 2.0" + "licenseDisplayName": "MIT License" }, - "matchedFilePath": "/spring-security-8f9065b3f6b48b9157b43b9e35153680d1bb68d7/test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/SecurityRequestsTests.java", + "matchedFilePath": "/tutorials-387f9e7e526c46097d7216127d3f12cf0ae7a138/spring-thymeleaf/src/test/java/com/baeldung/thymeleaf/controller/FragmentsIntegrationTest.java", "regions": { "sourceStartLines": [ 3 ], "sourceEndLines": [ - 21 + 29 ], "matchedStartLines": [ - 21 + 5 ], "matchedEndLines": [ - 43 + 31 ] } }, { "projectName": "Spring Security", - "releaseVersion": "4.0.0.RC2", + "releaseVersion": "4.0.0", "licenseDefinition": { "name": "Apache License 2.0", "spdxId": "Apache-2.0", "ownership": "OPEN_SOURCE", "licenseDisplayName": "Apache License 2.0" }, - "matchedFilePath": "/spring-security-bbce00b4a66193891700c57922d253190844e76d/config/src/test/java/org/springframework/security/config/annotation/web/configuration/WebMvcSecurityConfigurationTests.java", + "matchedFilePath": "/spring-security-8f9065b3f6b48b9157b43b9e35153680d1bb68d7/test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/SecurityRequestsTests.java", "regions": { "sourceStartLines": [ 3 @@ -807,10 +785,10 @@ 21 ], "matchedStartLines": [ - 18 + 21 ], "matchedEndLines": [ - 46 + 43 ] } }, diff --git a/snippet-analysis.sarif b/snippet-analysis.sarif index fe6442e..11909ee 100644 --- a/snippet-analysis.sarif +++ b/snippet-analysis.sarif @@ -26,7 +26,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -47,7 +47,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -68,7 +68,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -110,7 +110,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -122,27 +122,6 @@ "message": { "text": "License match found: Unknown License" }, - "locations": [ - { - "physicalLocation": { - "artifactLocation": { - "uri": ".snippet-licenses/DashboardControllerTest.java-snippet-analysis.json", - "uriBaseId": "%SRCROOT%" - }, - "region": { - "startLine": 4, - "endLine": 28 - } - } - } - ] - }, - { - "ruleId": "unknown", - "level": "warning", - "message": { - "text": "License match found: (libxml2 License AND GNU General Public License v2.0 or later AND Apache License 2.0 AND MIT License AND Creative Commons Public Domain Dedication and Certification AND Public Domain)" - }, "locations": [ { "physicalLocation": { @@ -152,7 +131,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -173,7 +152,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -194,7 +173,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -215,7 +194,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -236,7 +215,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -257,7 +236,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -267,7 +246,7 @@ "ruleId": "unknown", "level": "warning", "message": { - "text": "License match found: (Common Public License 1.0 AND GNU General Public License v2.0 or later AND Apache License 2.0 AND W3C Software Notice and License (2002-12-31) AND Mozilla Public License 2.0 AND GNU Lesser General Public License v2.1 or later AND Eclipse Public License 1.0)" + "text": "License match found: (libxml2 License AND GNU General Public License v2.0 or later AND Apache License 2.0 AND MIT License AND Creative Commons Public Domain Dedication and Certification AND Public Domain)" }, "locations": [ { @@ -278,7 +257,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 20 } } } @@ -341,7 +320,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -425,7 +404,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -509,7 +488,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -530,7 +509,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -551,7 +530,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -572,7 +551,7 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } @@ -635,17 +614,17 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 21 } } } ] }, { - "ruleId": "MIT", + "ruleId": "Apache-2.0", "level": "warning", "message": { - "text": "License match found: MIT License" + "text": "License match found: Apache License 2.0" }, "locations": [ { @@ -656,17 +635,17 @@ }, "region": { "startLine": 3, - "endLine": 28 + "endLine": 29 } } } ] }, { - "ruleId": "Apache-2.0", + "ruleId": "MIT", "level": "warning", "message": { - "text": "License match found: Apache License 2.0" + "text": "License match found: MIT License" }, "locations": [ { @@ -677,7 +656,7 @@ }, "region": { "startLine": 3, - "endLine": 21 + "endLine": 29 } } }