Skip to content

Commit fccdda0

Browse files
author
shijiashuai
committed
fix(ci): resolve GitHub Actions workflow errors
- Fix trivy-action version from 0.28.0 to master - Fix trufflehog version from 3.88.2 to main - Fix E2E test working directory issue - server needs to run from project root to find web/ directory
1 parent b6e2181 commit fccdda0

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ jobs:
124124
run: go build -o ./tmp/server ./cmd/server
125125

126126
- name: Run E2E tests
127-
working-directory: e2e
128127
run: |
129-
# Start server in background
130-
../tmp/server &
128+
# Start server in background from project root (so it can find web/ dir)
129+
./tmp/server &
131130
SERVER_PID=$!
132131
# Wait for server to be ready
133132
for i in {1..30}; do
@@ -136,8 +135,8 @@ jobs:
136135
fi
137136
sleep 1
138137
done
139-
# Run tests
140-
npx playwright test --reporter=list
138+
# Run tests from e2e directory
139+
cd e2e && npx playwright test --reporter=list
141140
TEST_EXIT=$?
142141
# Cleanup
143142
kill $SERVER_PID 2>/dev/null || true
@@ -181,7 +180,7 @@ jobs:
181180
uses: golang/govulncheck-action@v1
182181

183182
- name: Run Trivy vulnerability scanner
184-
uses: aquasecurity/trivy-action@0.28.0
183+
uses: aquasecurity/trivy-action@master
185184
with:
186185
scan-type: 'fs'
187186
format: 'sarif'
@@ -194,7 +193,7 @@ jobs:
194193
sarif_file: 'trivy-results.sarif'
195194

196195
- name: Secret detection
197-
uses: trufflesecurity/trufflehog@3.88.2
196+
uses: trufflesecurity/trufflehog@main
198197
with:
199198
path: ./
200199
base: main

0 commit comments

Comments
 (0)