From 214c28620adcc3bb3ccf3edf3bd7c39cbbc9a41e Mon Sep 17 00:00:00 2001 From: hiteshshridhar Date: Tue, 21 May 2024 16:46:17 +0200 Subject: [PATCH 1/5] changed the org name for sonar --- .github/workflows/complete-workflow.yml | 2 +- .idea/.gitignore | 8 +++ .idea/compiler.xml | 13 ++++ .idea/jarRepositories.xml | 20 ++++++ .idea/misc.xml | 12 ++++ .idea/vcs.xml | 6 ++ target/classes/Butler.class | Bin 0 -> 868 bytes target/classes/Calculator.class | Bin 0 -> 762 bytes target/classes/Unzipper.class | Bin 0 -> 904 bytes target/jacoco.exec | Bin 0 -> 12112 bytes ...erable-code-asecurityguru-1.0-SNAPSHOT.jar | Bin 0 -> 3923 bytes target/maven-archiver/pom.properties | 3 + .../compile/default-compile/createdFiles.lst | 3 + .../compile/default-compile/inputFiles.lst | 3 + .../default-testCompile/createdFiles.lst | 1 + .../default-testCompile/inputFiles.lst | 1 + target/site/jacoco/jacoco.xml | 1 + target/surefire-reports/CalculatorTest.txt | 4 ++ .../surefire-reports/TEST-CalculatorTest.xml | 63 ++++++++++++++++++ target/test-classes/CalculatorTest.class | Bin 0 -> 799 bytes 20 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 target/classes/Butler.class create mode 100644 target/classes/Calculator.class create mode 100644 target/classes/Unzipper.class create mode 100644 target/jacoco.exec create mode 100644 target/java-vulnerable-code-asecurityguru-1.0-SNAPSHOT.jar create mode 100644 target/maven-archiver/pom.properties create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst create mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst create mode 100644 target/site/jacoco/jacoco.xml create mode 100644 target/surefire-reports/CalculatorTest.txt create mode 100644 target/surefire-reports/TEST-CalculatorTest.xml create mode 100644 target/test-classes/CalculatorTest.class diff --git a/.github/workflows/complete-workflow.yml b/.github/workflows/complete-workflow.yml index f6c5f9e2..4b94468b 100644 --- a/.github/workflows/complete-workflow.yml +++ b/.github/workflows/complete-workflow.yml @@ -14,7 +14,7 @@ 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 + run: mvn -B verify sonar:sonar -Dsonar.projectKey=githubactionscasestudy -Dsonar.organization=githubactionscaseStudy -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} 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/target/classes/Butler.class b/target/classes/Butler.class new file mode 100644 index 0000000000000000000000000000000000000000..9cd3b3f09ae2cdada17e0472313106819f60327f GIT binary patch literal 868 zcmZuv+iuf95Iq|wvFo}dq@;lYrR5qYp>6|jsVV^y;=vT8Kr49LB&&3*jU72QD1X9l zz(b2b;sf|7#H^i$roxtXcXoEpIdl2_=f^JqPw~V?4u*-mg93^S~nRZ8EEFY70R=@l?9S`8*e`mS`r8a^i@?+IIrznN z=Z)UG&_yb}42GS30<*he67|JPsiiJwYPNO1v4#6IWBSX1NKvHqAz2>njP^p~4D4&_ zenhKw19{YGb+QL=(IAVVIS>8t>Tct4snv_S}UK`5I_NRdLj2+9T)+&CuO;@FjA_Y3$E z7O-K%rXUvm0RDr2U`3gmL^6ot#f)d>o^xjI-0#1>odS4>dkzXP1WXqeY{Jr^JeI9c zMx)lj;4tu0g8f)UDt$sQ>WzL8MMB|a(}9DMfa_ur7yg3v(nLigf;Bk`6~i~`-JEk) zY&Tx~n{%*)Wr2!|6XoRTS)J<3W%-mxGWqm2T|IurCv(<9X6d->3<}?dBA1 z7LmiDN>v;Yyz>U{us9#locVzBTOlmSWR#7AC}m<}l8p((fW=-a{kPBL(NtNWL0CEG z0(qKVoF#tnROzP6d0*RF3O7*YUF)v^UJq=xmpN*&C-&Cn7trTvxyDwPwY|dDogKhc zT;qsvoylh44@@RFci-4;R>TPw_P0)VOk>CLEYEz8^)1hO@W`%J?XM`Gz literal 0 HcmV?d00001 diff --git a/target/classes/Unzipper.class b/target/classes/Unzipper.class new file mode 100644 index 0000000000000000000000000000000000000000..a01782944b8fac022ce287129eb4057177b97533 GIT binary patch literal 904 zcmZuvTTc@~6#k|y?6TdK+Hz5(SSm`nxa$S47!xu2wAF_K3Ho5B+o23@cbn}Lh(E-{ zpWzENHqm$glg2Y`kr>&@o|$w1=9}~L_qXo=Ht@tk0!afY8)Fz}$Q|+{?gl(;x^L=- z!dDFAPh}|8GlpbkW!Hd7maVP|L~Ox8Qj4?=TPGXGBJiV@Fp*`La@-aVq%Wgx=l#A6 zg!56hP2?ETj@u1MX^VzyA&-KADI3$6VVH~JrW-ak4&APjf%`o659E>9p>v1w23fDD z)ON(MT=CAa)>JIR=H~wvjrcNyJqVSNtFukaF=SlTYP;e{297#W7G^Q8DJU{bUr=~u zS4Uj4QNkkKU!2H}B1FWp7^4zWE7gX!BDB5aZu76l>X^jI_8~{9}BKT z!$KMJ1}Y5Z&XAm#A@w3^2!=^dhT?U%RTuF#uLoqwdy&tBT^>uVkBljGAPJP^ofX)m z3N0=}hMCH{i?|^_kDHWJxWG;KtPkFqAbG%!qLYl7n&SS4DsPXFSbs^- zcxq8M_JwAiBG0fnnlUV5ndVP_2{1i@Bv(jtX=k*Lt@gma4BV?EwHrubjifycz&dV` zHUWo{5`*MVNYbJreHeQ^On7Uju=1JwEn?H1$ zBy^hvnrYB)(z208fn*UGEFnv6a)b7zVGG>G9f~#S9(Qq%AQfq#H*lYzJRo}->=zsZ UhC$==kPImbDbxRm&IvsJ1I_ux7XSbN literal 0 HcmV?d00001 diff --git a/target/jacoco.exec b/target/jacoco.exec new file mode 100644 index 0000000000000000000000000000000000000000..a568d94c8bafc02bf730861bf92b400bf5ca3e11 GIT binary patch literal 12112 zcmb_id0bT09zVk%42r-JR8RyLGEi{XL`)1>1Cb@bB~9}(bAgdzX1sR>G&LZx%q2DT z`N=eWYMQA}E8MbNQ`+&x1|pfSqwU}T4#V~4U}HZSl~H^ zh3|TrRp-OM*>rgk&5WY-IxPijgb1IrEvz}2&M_Ja%#>ND$z_uCtT9DTu`GGUOVJZQ zwRc%!x1RCqP^|N9P+-5stkbJg>0-*FHy3CqLq5&IPvPFjE-8EvPW8N7Jw7&dFB;%{ z710?f#`1E?pv|W#EzLa5B~E#HR`t2Q_+IR)P?xGHG#cW31!70BPETA4TarA=ZzrAq zwQC1ldxv{4?_~R*&{Gc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g|SEz_XUTeP$`ZHn+6S``q<1{Ov`l`AHe9{BmdY1GChBObyP|J?fY@3yEBBV3z|Ayp{`(ErpQ z`*Fi1<*!dH`sR6CYG~$5LFTY(o|Qz=)8SM*TyrP>-k@Vy@xqlwS>WRzCAU$YL5J?t z@NyPkI^a_tuiy$%aC7-tUn+ozaCNc$cqLXf%}RK6<+tnG>hC!4ch>34*;~haI#8}3 z5)(%R9)2_-o~gr)rt|qXVh#^3S#Ntc(`spvbPGDO#9#z*E6Na84;+Bgrsu1CmdgoK R66Z&_U%182hQzq__#gDeR!IN= literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f994039718da3d0d094ac75d236acc4bf8186b39 GIT binary patch literal 3923 zcmb_f2{e>_7azN^lx38$B$GYHSW;pzykeNK@72p-vW>x5A}PW|C`!mu$WE4&?VT1T zvM<>i$}USNA`#zs>-|(;Z|6JbeeZLgbN=Uf?(g1v?z#7W@6Sk|j-CYoU#iCaVSqfLZE6NZpIAn>wxIN7 zpk3_xGE(iW9pxsl9)*!f0#pwzjYN0(7CbOnLQCtnnJy97Oqd%b(H*U(us#LGd@rfC zR%F))y{0~Ps4lv~1SUT*IW|cP*a_k1k?#FA1b2)d7XN3wKUe1eUu6%16BO%@areYw ze*skcHP98~hmrB~#o@68j6Du3?b zgZMU>?u+})Jkjz(_UP+9Y9*ftrX3DP#*TkJzvC*!eIxT&!3wzByMx zVipYA&bLvWNXryrE&gq|PJW6#p0{;))YG20vYZFy6@!DXSPomDpQ(`caa>=6++i|5 zpdX}0(><%fCE22aE=5~KwZvj_R#r(ljqT%%^`Le+(>o6*Zbx1}O7f~3P$P$}tsMil zT7cGGCkAYUMSgH%PBs*sZFt;SJQ2{`)+JdQX8uzBb9C?wyGZp3@kGT#@S0al8>vbC z$g84ueEcGBGw77OLRXFnu<#)-sYA47MZ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PFK42j0vMp{VLUlNW;|Wr#i0+g#Nd$P*vQHF3@}y8bi^kyB&d-<)kxYEa^b zIQ(1-C`&4vu9R}^p2-Zj9Vo{NNiKSgsDgRR%$?=<5GCiczqRw7bJo|<9WjChU|=+Lpy&P4nM7g9P83T4p8J;0o2#?EnkGETWLb|l zXDaRtmcYu}m$+AhtX{q2UEk`tlb#~J0!vXLt5jqK*mq(q<4$Qli!e7{#1J|98x1)7 zhG3+e47SOwme7r{@v^?j9DHeG02iiSK0jIwz}x6?5o+?;*p=1$x$o#6x5_ft*T*l< zrrOvSE)I7`PFGU2e3%0{LD9?=PPxO-^CYRP*22C~=_ZFN(8*!J?M3__f5dz!Gk0UT zwy#g~LlG{JR$709V70RK*1ff%@sAa?v-5atqo2{I_hZK``g%{>bS_IYrW={nmUC&5 zfm4D$xcAq^(hySa`~~s8p`*VmUNR(HFg#JQyq(ZYGhRXfU?u9Wlj+bK`ImTbwt8sU zo6V5m?PK(d9YJ;}b>6)Uv^d^#BujksB z%*Zqq1_pOJHI%LbfvXWO&RpigKR{(Xz8x8!+d5fti&V!{%w?>Yr81Ef*o#!yTL?}> zpEuH{p#{e8mB>Ld3s?eM2aI<#>kye32c;1=Qnz z9sk7#{yyp*M({;;!2Q(Y58&_l!QUI&VF+Jj#}Ef~&-#U-|BEktpR*qs!(ZOALU2@H z-}8qr+1kzbkDK2vc7!_pf7}CqME|%c?4lPKzTX?ZMgDAR>>>rIob#XM=j#ml*5%Jy fYS$%!_1|#0+h9ie42(P0S*Q;iHH~sRTNL0wDpMMT literal 0 HcmV?d00001 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..6009a019 --- /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..425c1688 --- /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.036 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..f8aac747 --- /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 0000000000000000000000000000000000000000..b1f5b9b4e09198a494c701223ad4bcd0bb6d575b GIT binary patch literal 799 zcmbV}-EPxB5QWdiNt_zfq;5-+sz8AjoCdHcATA0>Q3X;fi%K+##N{S2VI#*D{wd-C zcpz>l0*MFUp%7=2piqIhz!$SSJ3Hq)JO2LT%QpZIaK}OchKZt$63PO#u{@PtD5H^g z+#d&nOrZQ&MJjtLV7RTGiHd-AAj3f($}CPSm@q21!0N;Hp3W}XSVmQ#B8NkjsW=i? zcm0LzNtUQ+wBI@`(SZI;3#(W&v2NoM>a-9iBX69O>2=aHNNB;9)6KKDxeQZ*l6!R2 z>Q&I>_TK&W-lJbqu8GS6%L{wmAZ2^;ARYz+RbNHHi+s`#lCJEBJaPPZAj6(al+Nde z#q5nDq~@QO*%w$j4HEVGeP{l#b{E!I*IdS5Ik4f`09CYclCI24V(O#`ZK`Epv-uMna5RdE$yB` zeB`EptBkq~SlD8;XBQ}OoteN5RtwYSK8lnB8ed_)I>VCRcC1gZpRA#_`QbC1g`UHk zKou3#7*|k-Gu7Uj_0P3+bsIZmRI!AcxJ8c3KJBJ8W$*rr-I%dA{>rYC-Jouh?2Z3o Kx9OmO+dlzjnvm`Q literal 0 HcmV?d00001 From 3c671da2fd625968ad6e67e75e0239d1ea20b5ed Mon Sep 17 00:00:00 2001 From: hiteshshridhar Date: Tue, 21 May 2024 16:51:35 +0200 Subject: [PATCH 2/5] adding the space to start workflow --- .github/workflows/complete-workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/complete-workflow.yml b/.github/workflows/complete-workflow.yml index 4b94468b..9a9434b1 100644 --- a/.github/workflows/complete-workflow.yml +++ b/.github/workflows/complete-workflow.yml @@ -45,3 +45,4 @@ jobs: target: 'http://testphp.vulnweb.com/' rules_file_name: '.zap/rules.tsv' cmd_options: '-a' + From 0f0d494297de20da7c6d8288a3d524e393aa2ffa Mon Sep 17 00:00:00 2001 From: hiteshshridhar Date: Tue, 21 May 2024 17:00:52 +0200 Subject: [PATCH 3/5] new ttk added --- .github/workflows/complete-workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/complete-workflow.yml b/.github/workflows/complete-workflow.yml index 9a9434b1..6f38a6ab 100644 --- a/.github/workflows/complete-workflow.yml +++ b/.github/workflows/complete-workflow.yml @@ -14,6 +14,7 @@ jobs: distribution: 'adopt' cache: maven - name: Build with Maven cloud + #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 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 723f66547feac77c70c78a088461346307e73cf5 Mon Sep 17 00:00:00 2001 From: hiteshshridhar Date: Tue, 21 May 2024 17:18:41 +0200 Subject: [PATCH 4/5] updated pom.xml from sonar --- pom.xml | 82 +++++++++--------- target/jacoco.exec | Bin 12112 -> 12112 bytes ...erable-code-asecurityguru-1.0-SNAPSHOT.jar | Bin 3923 -> 3952 bytes target/site/jacoco/jacoco.xml | 2 +- target/surefire-reports/CalculatorTest.txt | 2 +- .../surefire-reports/TEST-CalculatorTest.xml | 8 +- 6 files changed, 47 insertions(+), 47 deletions(-) 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/jacoco.exec b/target/jacoco.exec index a568d94c8bafc02bf730861bf92b400bf5ca3e11..a3db49bbdbe820513a751932e936d345e254fc25 100644 GIT binary patch delta 35 mcmcZ*cOh7OMOLd&fBp2`L_%N>dwbMJos8j_|z7z zohx^R-PKx~ZTezM_~aQ0B5zKVX}no~|EO9d2ji-@rF#@MwO2yt+W5Ypvdvg-U6@UPaJ_`$pTkPd$P$ zoO3xt+sX8kZ=Y3u zdYb9=p^Bf)L?!*fiIOLO6<1%$&|IO_y|n57rWRLC^X?=z%?Is$ihIpmH>vJ8yhZz( zQ4mJLg=*a@4>oZHM_bykm@7tk9x753l2{+LMgQKmP2p>f6>VjD;1D;> zFx;j4)2*ckQNDfhk4frR3{+TW zO^My7JG<}Qinuc>p`F+NZ*euBeAlABt?=6~`2vYUas2HXJjWk$+_hQMe)3BF>-!rm zb&Z-=nYtD6NeYLh?|m-m9HZ1G1|91Oj|GEzv9Jk*pTD9%%@N(H;_3h2p z+pYZJtv7Z_$)4M+)cSkV)w>V>zuUHZ_jbGbzOA(n4<6bT;2yTkmXU91bx6#Y$G3Nz zOE*6-`f+39?yZWq8NPmdWEEm|H8$$PXO&Zp8mk^0^<4On8+|cwkIXS=F-oGm3wnE6+1~QZ-#IV^eZ1KeYdRyCb42nzj#BT)%ZrZi`S#WHY ze5!}9=jWV?E9o0APZZs?bT0dTc1OvcB}Pdn{i8b)$$e7Rti=*E|AMrSJyO&qOqk2`bf@7ef# zyH?iamy0UrRU2|E&02Hcafd;%?(6z;fv??$CE{l;e2m=1_w&K7!?#664V~?ZCfa6g znZmV~EAPUb%;r4R2LT3^i3W^^M2=tAS=6SedBKNkRi5xn_ZNMyt~v#YS{~NVf04Fr z{>}9Uo6mg^{#F}t@1w-ee^=%&n63WBV7B#P>upOalP)BNPmFOo(h(Z?KCw;U`UyY5 zYxQ>w_AFb-^Yq{8=HHJVZ@l(&S>A>dl|qR}jaK&9F-V-quh$Fu8<@pie7y7_U-tHm zS@*5lU(Jb1TK)d+<<95ZZ#$Q8R11pqaBNFoepjz%kJgeitFJxOIhnjeB>JxG|Mz*j zclUnX7@E!1FLur8>zbTuCLQnJMG;^Az0Eyy?8NRbcJ<|N@={Nf1^oK-$SUmG)!3*D zpEXV_2nad2S;+Y?=QG)ooKKU~<~nNSO0Swy+Wauiq{+Xi&fjg@=l|1AF+N^j#E`0S zbkbpF-`^{nM04W3eD$ZEQfl~b!SeomZNd)~se|d7b9HKcD@7RZeSCIGhGm!9&HKJj zXUG4M \ No newline at end of file + \ No newline at end of file diff --git a/target/surefire-reports/CalculatorTest.txt b/target/surefire-reports/CalculatorTest.txt index 425c1688..9a6b4032 100644 --- a/target/surefire-reports/CalculatorTest.txt +++ b/target/surefire-reports/CalculatorTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: CalculatorTest ------------------------------------------------------------------------------- -Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 s -- in 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 index f8aac747..f93d48a5 100644 --- a/target/surefire-reports/TEST-CalculatorTest.xml +++ b/target/surefire-reports/TEST-CalculatorTest.xml @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -29,7 +29,7 @@ - + @@ -58,6 +58,6 @@ - + \ No newline at end of file From cc3b93a61e4e28742b1fbfe4ae59d71184eb38af Mon Sep 17 00:00:00 2001 From: hiteshshridhar Date: Tue, 21 May 2024 17:23:04 +0200 Subject: [PATCH 5/5] updated pom.xml from sonar --- .github/workflows/complete-workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/complete-workflow.yml b/.github/workflows/complete-workflow.yml index 6f38a6ab..1b5d2c7c 100644 --- a/.github/workflows/complete-workflow.yml +++ b/.github/workflows/complete-workflow.yml @@ -16,6 +16,7 @@ jobs: - name: Build with Maven cloud #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 }}