File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 53
53
with :
54
54
report_paths : ' **/target/surefire-reports/TEST-*.xml'
55
55
56
+ - name : Sonar
57
+ if : github.event.pull_request.head.repo.fork == false
58
+ run : mvn verify sonar:sonar
59
+ env :
60
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
62
+
56
63
- name : Grype source code
57
64
id : grype_source_code
58
65
uses : anchore/scan-action@v6
69
76
sarif_file : ${{ steps.grype_source_code.outputs.sarif }}
70
77
category : ' source-code'
71
78
72
- - name : Sonar
73
- if : github.event.pull_request.head.repo.fork == false
74
- run : mvn verify sonar:sonar
75
- env :
76
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
78
-
79
79
- name : Docker
80
80
if : github.ref == 'refs/heads/main'
81
81
run : mvn -B -DskipTests package jib:build -Djib.to.auth.username=$DOCKER_USER -Djib.to.auth.password=$DOCKER_TOKEN
You can’t perform that action at this time.
0 commit comments