@@ -11,51 +11,57 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
13
13
steps :
14
- - name : Checkout code
14
+ - name : 🛎️ Checkout code
15
15
uses : actions/checkout@v3
16
16
17
- - name : Build Docker images
17
+ - name : 🏗️ Build Docker images
18
18
run : |
19
19
docker build -t voting-app ./vote
20
20
docker build -t worker ./worker
21
21
docker build -t result ./result
22
22
23
- - name : Run Sysdig Scan (voting-app)
23
+ - name : 🔍 Run Sysdig Scan (voting-app)
24
+ env :
25
+ SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
24
26
run : |
25
27
docker run --rm \
26
28
--platform linux/amd64 \
27
29
--user 0 \
28
- -e SECURE_API_TOKEN=${{ secrets. SECURE_API_TOKEN }} \
30
+ -e SECURE_API_TOKEN=$SECURE_API_TOKEN \
29
31
-v /var/run/docker.sock:/var/run/docker.sock \
30
32
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
33
+ scan \
31
34
--apiurl https://app.au1.sysdig.com \
32
- --loglevel info \
33
35
--skiptlsverify \
34
36
docker://voting-app
35
37
36
- - name : Run Sysdig Scan (worker)
38
+ - name : 🔍 Run Sysdig Scan (worker)
39
+ env :
40
+ SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
37
41
run : |
38
42
docker run --rm \
39
43
--platform linux/amd64 \
40
44
--user 0 \
41
- -e SECURE_API_TOKEN=${{ secrets. SECURE_API_TOKEN }} \
45
+ -e SECURE_API_TOKEN=$SECURE_API_TOKEN \
42
46
-v /var/run/docker.sock:/var/run/docker.sock \
43
47
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
48
+ scan \
44
49
--apiurl https://app.au1.sysdig.com \
45
- --loglevel info \
46
50
--skiptlsverify \
47
51
docker://worker
48
52
49
- - name : Run Sysdig Scan (result)
53
+ - name : 🔍 Run Sysdig Scan (result)
54
+ env :
55
+ SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
50
56
run : |
51
57
docker run --rm \
52
58
--platform linux/amd64 \
53
59
--user 0 \
54
- -e SECURE_API_TOKEN=${{ secrets. SECURE_API_TOKEN }} \
60
+ -e SECURE_API_TOKEN=$SECURE_API_TOKEN \
55
61
-v /var/run/docker.sock:/var/run/docker.sock \
56
62
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
63
+ scan \
57
64
--apiurl https://app.au1.sysdig.com \
58
- --loglevel info \
59
65
--skiptlsverify \
60
66
docker://result
61
67
0 commit comments