File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,17 @@ jobs:
23
23
docker build -t worker ./worker
24
24
docker build -t result ./result
25
25
26
- - name : Debug: Check if SECURE_API_TOKEN is available
26
+ - name : Set SECURE_API_TOKEN env and debug
27
27
run : |
28
- echo "Token Length: ${#SECURE_API_TOKEN}"
29
- echo "Token Head: ${SECURE_API_TOKEN:0:5}"
28
+ export SECURE_API_TOKEN="${{ secrets.SECURE_API_TOKEN }}"
29
+ echo "🔍 Token Length: ${#SECURE_API_TOKEN}"
30
+ echo "🔍 Token Head: ${SECURE_API_TOKEN:0:5}"
30
31
if [ -z "$SECURE_API_TOKEN" ]; then
31
- echo "SECURE_API_TOKEN is NOT set!"
32
+ echo "❌ SECURE_API_TOKEN is NOT set!"
32
33
exit 1
33
34
else
34
- echo "SECURE_API_TOKEN is available."
35
+ echo "✅ SECURE_API_TOKEN is available."
35
36
fi
36
- env :
37
- SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
38
37
39
38
- name : Run Sysdig Scan (voting-app)
40
39
run : |
43
42
--user 0 \
44
43
-v "$(pwd)/scan-logs:/home/nonroot/scan-logs" \
45
44
-v /var/run/docker.sock:/var/run/docker.sock \
46
- -e SECURE_API_TOKEN=${{ secrets.SECURE_API_TOKEN }} \
45
+ -e SECURE_API_TOKEN=" ${{ secrets.SECURE_API_TOKEN }}" \
47
46
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
48
- --apiurl $SYS_DIG_SECURE_URL \
47
+ --apiurl " $SYS_DIG_SECURE_URL" \
49
48
--loglevel debug \
50
49
--skiptlsverify \
51
50
docker://voting-app
51
+
You can’t perform that action at this time.
0 commit comments