From 7391f5160de879d5d96b511edfb3ede7e592e8f0 Mon Sep 17 00:00:00 2001 From: simple Date: Thu, 29 May 2025 23:55:14 +0900 Subject: [PATCH] [main] fix: remove invalid secret condition in workflow - Replace secrets condition with proper GitHub context condition - Secrets cannot be used directly in if conditions - Run integration tests only for push events or PRs from the same repo --- .github/workflows/pr-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index a110df8..bc40b93 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -85,7 +85,7 @@ jobs: run: npm run build - name: Run integration tests - if: ${{ secrets.GITLAB_TOKEN_TEST }} + if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} run: | echo "Running integration tests with real GitLab API..." npm run test:integration || echo "No integration test script found"