Skip to content

Commit 698337e

Browse files
committed
Fix: Ensure SECURE_API_TOKEN is injected properly
1 parent d68086c commit 698337e

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/scan.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,57 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
14+
- name: 🛎️ Checkout code
1515
uses: actions/checkout@v3
1616

17-
- name: Build Docker images
17+
- name: 🏗️ Build Docker images
1818
run: |
1919
docker build -t voting-app ./vote
2020
docker build -t worker ./worker
2121
docker build -t result ./result
2222
23-
- name: Run Sysdig Scan (voting-app)
23+
- name: 🔍 Run Sysdig Scan (voting-app)
24+
env:
25+
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
2426
run: |
2527
docker run --rm \
2628
--platform linux/amd64 \
2729
--user 0 \
28-
-e SECURE_API_TOKEN=${{ secrets.SECURE_API_TOKEN }} \
30+
-e SECURE_API_TOKEN=$SECURE_API_TOKEN \
2931
-v /var/run/docker.sock:/var/run/docker.sock \
3032
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
33+
scan \
3134
--apiurl https://app.au1.sysdig.com \
32-
--loglevel info \
3335
--skiptlsverify \
3436
docker://voting-app
3537
36-
- name: Run Sysdig Scan (worker)
38+
- name: 🔍 Run Sysdig Scan (worker)
39+
env:
40+
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
3741
run: |
3842
docker run --rm \
3943
--platform linux/amd64 \
4044
--user 0 \
41-
-e SECURE_API_TOKEN=${{ secrets.SECURE_API_TOKEN }} \
45+
-e SECURE_API_TOKEN=$SECURE_API_TOKEN \
4246
-v /var/run/docker.sock:/var/run/docker.sock \
4347
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
48+
scan \
4449
--apiurl https://app.au1.sysdig.com \
45-
--loglevel info \
4650
--skiptlsverify \
4751
docker://worker
4852
49-
- name: Run Sysdig Scan (result)
53+
- name: 🔍 Run Sysdig Scan (result)
54+
env:
55+
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
5056
run: |
5157
docker run --rm \
5258
--platform linux/amd64 \
5359
--user 0 \
54-
-e SECURE_API_TOKEN=${{ secrets.SECURE_API_TOKEN }} \
60+
-e SECURE_API_TOKEN=$SECURE_API_TOKEN \
5561
-v /var/run/docker.sock:/var/run/docker.sock \
5662
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
63+
scan \
5764
--apiurl https://app.au1.sysdig.com \
58-
--loglevel info \
5965
--skiptlsverify \
6066
docker://result
6167

0 commit comments

Comments
 (0)