Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 1 addition & 50 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@ jobs:
push: true
tags: ghcr.io/${{ env.REPO_LOWER }}/user-service:latest

- name: Scan userService image with Trivy
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ghcr.io/${{ env.REPO_LOWER }}/user-service:latest
format: table
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true

# Build authService
build-authService:
Expand Down Expand Up @@ -113,15 +105,6 @@ jobs:
push: true
tags: ghcr.io/${{ env.REPO_LOWER }}/auth-service:latest

- name: Scan authService image with Trivy
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ghcr.io/${{ env.REPO_LOWER }}/auth-service:latest
format: table
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true

# Build mailService
build-mailService:
needs: detect-changes
Expand Down Expand Up @@ -151,14 +134,6 @@ jobs:
push: true
tags: ghcr.io/${{ env.REPO_LOWER }}/mail-service:latest

- name: Scan mailService image with Trivy
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ghcr.io/${{ env.REPO_LOWER }}/mail-service:latest
format: table
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true

# Build eureka
build-eureka:
Expand Down Expand Up @@ -189,15 +164,6 @@ jobs:
push: true
tags: ghcr.io/${{ env.REPO_LOWER }}/eureka:latest

- name: Scan eureka image with Trivy
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ghcr.io/${{ env.REPO_LOWER }}/eureka:latest
format: table
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true

# Build configServer
build-configServer:
needs: detect-changes
Expand Down Expand Up @@ -227,14 +193,6 @@ jobs:
push: true
tags: ghcr.io/${{ env.REPO_LOWER }}/config-server:latest

- name: Scan configServer image with Trivy
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ghcr.io/${{ env.REPO_LOWER }}/config-server:latest
format: table
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true

# Build gateway
build-gateway:
Expand Down Expand Up @@ -264,11 +222,4 @@ jobs:
context: ./gateway
push: true
tags: ghcr.io/${{ env.REPO_LOWER }}/gateway:latest
- name: Scan gateway image with Trivy
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ghcr.io/${{ env.REPO_LOWER }}/gateway:latest
format: table
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true

36 changes: 27 additions & 9 deletions authService/pom.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.7</version>
<relativePath/>
<relativePath />
<!-- lookup parent from repository -->
</parent>
<groupId>com.tutorial</groupId>
<artifactId>authService</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>authService</name>
<description>auth microservice to manage authentication</description>
<url/>
<url />
<licenses>
<license/>
<license />
</licenses>
<developers>
<developer/>
<developer />
</developers>
<scm>
<connection/>
<developerConnection/>
<tag/>
<url/>
<connection />
<developerConnection />
<tag />
<url />
</scm>
<properties>
<java.version>21</java.version>
Expand Down Expand Up @@ -118,6 +119,23 @@
<version>0.12.5</version>
<scope>runtime</scope>
</dependency>
<!-- Micrometer Tracing with Brave (Zipkin) -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-brave</artifactId>
</dependency>
<dependency>
<groupId>io.zipkin.reporter2</groupId>
<artifactId>zipkin-reporter-brave</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down
Loading
Loading