Skip to content

Commit bdf3d29

Browse files
committed
Fix: Ensure SECURE_API_TOKEN is injected properly
1 parent 0c0c174 commit bdf3d29

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

.github/workflows/scan.yml

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: 🛎️ Checkout code
1818
uses: actions/checkout@v3
1919

20-
- name: 🐳 Build Docker images
20+
- name: 🏗️ Build Docker images
2121
run: |
2222
docker build -t voting-app ./vote
2323
docker build -t worker ./worker
@@ -41,37 +41,12 @@ jobs:
4141
docker run --rm \
4242
--platform linux/amd64 \
4343
--user 0 \
44+
-v "$(pwd)/scan-logs:/home/nonroot/scan-logs" \
4445
-v /var/run/docker.sock:/var/run/docker.sock \
4546
-e SECURE_API_TOKEN=${{ secrets.SECURE_API_TOKEN }} \
4647
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
4748
--apiurl $SYS_DIG_SECURE_URL \
48-
--skiptlsverify \
49-
--loglevel debug \
50-
docker://voting-app
51-
52-
- name: 🔍 Run Sysdig Scan (worker)
53-
run: |
54-
docker run --rm \
55-
--platform linux/amd64 \
56-
--user 0 \
57-
-v /var/run/docker.sock:/var/run/docker.sock \
58-
-e SECURE_API_TOKEN=${{ secrets.SECURE_API_TOKEN }} \
59-
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
60-
--apiurl $SYS_DIG_SECURE_URL \
61-
--skiptlsverify \
6249
--loglevel debug \
63-
docker://worker
64-
65-
- name: 🔍 Run Sysdig Scan (result)
66-
run: |
67-
docker run --rm \
68-
--platform linux/amd64 \
69-
--user 0 \
70-
-v /var/run/docker.sock:/var/run/docker.sock \
71-
-e SECURE_API_TOKEN=${{ secrets.SECURE_API_TOKEN }} \
72-
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
73-
--apiurl $SYS_DIG_SECURE_URL \
7450
--skiptlsverify \
75-
--loglevel debug \
76-
docker://result
51+
docker://voting-app
7752

0 commit comments

Comments
 (0)