From a17021fac029710f528e18a5fa52fed3809bc75c Mon Sep 17 00:00:00 2001 From: Sehi55 Date: Mon, 18 May 2026 05:25:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B6=8C=ED=95=9C=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20cd=20=ED=8A=B8=EB=A6=AC?= =?UTF-8?q?=EA=B1=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd-prod.yml | 7 ++++++- .../gateway/infrastructure/config/SecurityConfig.java | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index e6434c3..a12e58f 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -27,7 +27,12 @@ jobs: deploy: if: > github.event_name == 'workflow_dispatch' || - (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') + ( + github.event_name == 'workflow_run' && + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.event == 'push' && + github.event.workflow_run.head_branch == 'main' + ) runs-on: ubuntu-latest timeout-minutes: 20 diff --git a/src/main/java/com/michelet/gateway/infrastructure/config/SecurityConfig.java b/src/main/java/com/michelet/gateway/infrastructure/config/SecurityConfig.java index 171c598..d1320de 100644 --- a/src/main/java/com/michelet/gateway/infrastructure/config/SecurityConfig.java +++ b/src/main/java/com/michelet/gateway/infrastructure/config/SecurityConfig.java @@ -28,7 +28,7 @@ public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http, Ga exchanges-> exchanges.pathMatchers( "/api/*/auth/login", "/api/*/auth/reissue", - "/api/*/users/signup", "/actuator/health", "/actuator/info" + "/api/*/users/signup", "/actuator/health", "/actuator/info", "/actuator/prometheus" ).permitAll() .pathMatchers("/api/*/admin/**").hasRole("MASTER") .anyExchange().authenticated()