1
1
name : Sysdig Image Scan
2
2
3
3
on :
4
- workflow_dispatch :
5
4
push :
6
5
branches :
7
6
- main
7
+ workflow_dispatch :
8
8
9
9
jobs :
10
10
image-scan :
11
11
runs-on : ubuntu-latest
12
12
13
- env :
14
- SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
15
- SYS_DIG_SECURE_URL : https://app.au1.sysdig.com
16
-
17
13
steps :
18
14
- name : 🛎️ Checkout code
19
15
uses : actions/checkout@v3
@@ -24,45 +20,48 @@ jobs:
24
20
docker build -t worker ./worker
25
21
docker build -t result ./result
26
22
27
- - name : 🔍 Scan voting-app with Sysdig
23
+ - name : 🛡️ Scan voting-app with Sysdig
24
+ env :
25
+ SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
28
26
run : |
29
27
docker run --rm \
30
28
--platform linux/amd64 \
31
29
--user 0 \
32
- -v "${{ github.workspace }}/scan-logs:/home/nonroot/scan-logs" \
33
30
-v /var/run/docker.sock:/var/run/docker.sock \
34
- -e SECURE_API_TOKEN=${{ secrets. SECURE_API_TOKEN }} \
31
+ -e SECURE_API_TOKEN=$SECURE_API_TOKEN \
35
32
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
36
- --apiurl $SYS_DIG_SECURE_URL \
37
- --loglevel debug \
33
+ --apiurl https://app.au1.sysdig.com \
34
+ --loglevel info \
38
35
--skiptlsverify \
39
36
docker://voting-app
40
37
41
- - name : 🔍 Scan worker with Sysdig
38
+ - name : 🛡️ Scan worker with Sysdig
39
+ env :
40
+ SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
42
41
run : |
43
42
docker run --rm \
44
43
--platform linux/amd64 \
45
44
--user 0 \
46
- -v "${{ github.workspace }}/scan-logs:/home/nonroot/scan-logs" \
47
45
-v /var/run/docker.sock:/var/run/docker.sock \
48
- -e SECURE_API_TOKEN=${{ secrets. SECURE_API_TOKEN }} \
46
+ -e SECURE_API_TOKEN=$SECURE_API_TOKEN \
49
47
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
50
- --apiurl $SYS_DIG_SECURE_URL \
51
- --loglevel debug \
48
+ --apiurl https://app.au1.sysdig.com \
49
+ --loglevel info \
52
50
--skiptlsverify \
53
51
docker://worker
54
52
55
- - name : 🔍 Scan result with Sysdig
53
+ - name : 🛡️ Scan result with Sysdig
54
+ env :
55
+ SECURE_API_TOKEN : ${{ secrets.SECURE_API_TOKEN }}
56
56
run : |
57
57
docker run --rm \
58
58
--platform linux/amd64 \
59
59
--user 0 \
60
- -v "${{ github.workspace }}/scan-logs:/home/nonroot/scan-logs" \
61
60
-v /var/run/docker.sock:/var/run/docker.sock \
62
- -e SECURE_API_TOKEN=${{ secrets. SECURE_API_TOKEN }} \
61
+ -e SECURE_API_TOKEN=$SECURE_API_TOKEN \
63
62
quay.io/sysdig/sysdig-cli-scanner:1.22.4 \
64
- --apiurl $SYS_DIG_SECURE_URL \
65
- --loglevel debug \
63
+ --apiurl https://app.au1.sysdig.com \
64
+ --loglevel info \
66
65
--skiptlsverify \
67
66
docker://result
68
67
0 commit comments