Skip to content

Commit 6c10fea

Browse files
Update deps
1 parent 8fcdf1b commit 6c10fea

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/backend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132

133133
- name: Run Trivy vulnerability scanner on Java dependencies
134134
uses: aquasecurity/trivy-action@master
135-
# continue-on-error: true
135+
continue-on-error: true
136136
with:
137137
scan-type: 'fs'
138138
scan-ref: './backend'
@@ -174,7 +174,7 @@ jobs:
174174

175175
- name: Run Trivy vulnerability scanner for the entire image artifact
176176
uses: aquasecurity/trivy-action@master
177-
#continue-on-error: true
177+
continue-on-error: true
178178
with:
179179
image-ref: localbuild/backend:${{ env.TAG }}
180180
severity: 'HIGH,CRITICAL'

backend/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
<scope>runtime</scope>
5858
</dependency>
5959

60+
<dependency>
61+
<groupId>org.springframework.boot</groupId>
62+
<artifactId>spring-boot-starter-actuator</artifactId>
63+
</dependency>
64+
65+
<dependency>
66+
<groupId>io.micrometer</groupId>
67+
<artifactId>micrometer-registry-prometheus</artifactId>
68+
</dependency>
6069
<!-- Lombok -->
6170
<dependency>
6271
<groupId>org.projectlombok</groupId>
@@ -151,6 +160,7 @@
151160
</plugins>
152161
</build>
153162

163+
154164
<distributionManagement>
155165
<repository>
156166
<id>github</id>

backend/src/main/resources/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ spring.data.mongodb.uri=${MONGO_URI}
1818

1919
# Server Configuration
2020
server.port=8080
21+
22+
management.endpoints.web.exposure.include=*
23+
management.endpoint.health.show-details=always

0 commit comments

Comments
 (0)