diff --git a/.github/workflows/complete-workflow.yml b/.github/workflows/complete-workflow.yml index f6c5f9e2..1b5d2c7c 100644 --- a/.github/workflows/complete-workflow.yml +++ b/.github/workflows/complete-workflow.yml @@ -14,7 +14,9 @@ jobs: distribution: 'adopt' cache: maven - name: Build with Maven cloud - run: mvn -B verify sonar:sonar -Dsonar.projectKey=javaprojectreachability -Dsonar.organization=javaprojectreachability -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN + #changed the ttk + run: mvn -B verify sonar:sonar -Dsonar.projectKey=githubactionscasestudy -Dsonar.organization=githubactionscaseStudy -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN + continue-on-error: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -45,3 +47,4 @@ jobs: target: 'http://testphp.vulnweb.com/' rules_file_name: '.zap/rules.tsv' cmd_options: '-a' + diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..13566b81 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 00000000..3a78891e --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 00000000..712ab9d9 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..e650fb15 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index e2515157..db05b688 100644 --- a/pom.xml +++ b/pom.xml @@ -7,14 +7,14 @@ java-vulnerable-code-asecurityguru 1.0-SNAPSHOT - 1.8 - 1.8 + githubactionscasestudy + https://sonarcloud.io commons-collections commons-collections - 3.2.1 + 3.2.2 org.nd4j @@ -22,51 +22,51 @@ 1.0.0-beta2 - - - junit - junit - 4.12 - test - + + + junit + junit + 4.13.1 + test + - + - + org.jacoco - jacoco-maven-plugin + jacoco-maven-plugin 0.8.7 - - prepare-agent - - prepare-agent - - - - report - - report - - - - XML - - - + + prepare-agent + + prepare-agent + + + + report + + report + + + + XML + + + - - - + + + diff --git a/target/classes/Butler.class b/target/classes/Butler.class new file mode 100644 index 00000000..9cd3b3f0 Binary files /dev/null and b/target/classes/Butler.class differ diff --git a/target/classes/Calculator.class b/target/classes/Calculator.class new file mode 100644 index 00000000..170726f8 Binary files /dev/null and b/target/classes/Calculator.class differ diff --git a/target/classes/Unzipper.class b/target/classes/Unzipper.class new file mode 100644 index 00000000..a0178294 Binary files /dev/null and b/target/classes/Unzipper.class differ diff --git a/target/jacoco.exec b/target/jacoco.exec new file mode 100644 index 00000000..a3db49bb Binary files /dev/null and b/target/jacoco.exec differ diff --git a/target/java-vulnerable-code-asecurityguru-1.0-SNAPSHOT.jar b/target/java-vulnerable-code-asecurityguru-1.0-SNAPSHOT.jar new file mode 100644 index 00000000..46c33d78 Binary files /dev/null and b/target/java-vulnerable-code-asecurityguru-1.0-SNAPSHOT.jar differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 00000000..4e31e1f7 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=java-vulnerable-code-asecurityguru +groupId=org.example +version=1.0-SNAPSHOT diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 00000000..89dc8f05 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,3 @@ +Calculator.class +Butler.class +Unzipper.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 00000000..24aa9126 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,3 @@ +/Users/hiteshshridhar/Documents/Java/github_Actions_workflow/devsecops-github-actions-all-asecurityguru/src/main/java/Unzipper.java +/Users/hiteshshridhar/Documents/Java/github_Actions_workflow/devsecops-github-actions-all-asecurityguru/src/main/java/Calculator.java +/Users/hiteshshridhar/Documents/Java/github_Actions_workflow/devsecops-github-actions-all-asecurityguru/src/main/java/Butler.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 00000000..8819315f --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +CalculatorTest.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 00000000..cfb77a06 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/Users/hiteshshridhar/Documents/Java/github_Actions_workflow/devsecops-github-actions-all-asecurityguru/src/test/java/CalculatorTest.java diff --git a/target/site/jacoco/jacoco.xml b/target/site/jacoco/jacoco.xml new file mode 100644 index 00000000..900db6fb --- /dev/null +++ b/target/site/jacoco/jacoco.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/target/surefire-reports/CalculatorTest.txt b/target/surefire-reports/CalculatorTest.txt new file mode 100644 index 00000000..9a6b4032 --- /dev/null +++ b/target/surefire-reports/CalculatorTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: CalculatorTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 s -- in CalculatorTest diff --git a/target/surefire-reports/TEST-CalculatorTest.xml b/target/surefire-reports/TEST-CalculatorTest.xml new file mode 100644 index 00000000..f93d48a5 --- /dev/null +++ b/target/surefire-reports/TEST-CalculatorTest.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/test-classes/CalculatorTest.class b/target/test-classes/CalculatorTest.class new file mode 100644 index 00000000..b1f5b9b4 Binary files /dev/null and b/target/test-classes/CalculatorTest.class differ