File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
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 : Grype source code
57
+ id : grype_source_code
58
+ uses : anchore/scan-action@v6
59
+ with :
60
+ path : .
61
+ fail-build : true
62
+ severity-cutoff : high
63
+ only-fixed : true
64
+
65
+ - name : Upload Grype source code report
66
+ if : always() && steps.grype_source_code.outputs.sarif != ''
67
+ uses : github/codeql-action/upload-sarif@v3
68
+ with :
69
+ sarif_file : ${{ steps.grype_source_code.outputs.sarif }}
70
+ category : ' source-code'
71
+
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
+
56
79
- name : Docker
57
80
if : github.ref == 'refs/heads/main'
58
81
run : mvn -B -DskipTests package jib:build -Djib.to.auth.username=$DOCKER_USER -Djib.to.auth.password=$DOCKER_TOKEN
Original file line number Diff line number Diff line change 23
23
<palantir .version>2.58.0</palantir .version>
24
24
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
25
25
<slf4j-api .version>2.0.17</slf4j-api .version>
26
+ <sonar .host.url>https://sonarcloud.io</sonar .host.url>
27
+ <sonar .organization>michelin</sonar .organization>
28
+ <sonar .projectKey>michelin_kafka-streams-processing-error-handling</sonar .projectKey>
26
29
<spotless-maven-plugin .version>2.44.5</spotless-maven-plugin .version>
27
30
</properties >
28
31
117
120
<endWithNewline />
118
121
</sortPom >
119
122
</pom >
123
+ <yaml >
124
+ <includes >
125
+ <include >src/main/resources/*.yml</include >
126
+ <include >src/test/resources/*.yml</include >
127
+ </includes >
128
+ <jackson >
129
+ <features >
130
+ <ORDER_MAP_ENTRIES_BY_KEYS >true</ORDER_MAP_ENTRIES_BY_KEYS >
131
+ </features >
132
+ <yamlFeatures >
133
+ <WRITE_DOC_START_MARKER >false</WRITE_DOC_START_MARKER >
134
+ </yamlFeatures >
135
+ </jackson >
136
+ </yaml >
120
137
</configuration >
121
138
<executions >
122
139
<execution >
You can’t perform that action at this time.
0 commit comments