Skip to content

Commit 4936486

Browse files
committed
final Sysdig image scan
1 parent 72af093 commit 4936486

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

.github/workflows/scan.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
name: Sysdig Image Scan
22

33
on:
4-
workflow_dispatch:
54
push:
65
branches:
76
- main
7+
workflow_dispatch:
88

99
jobs:
1010
image-scan:
1111
runs-on: ubuntu-latest
1212

13-
env:
14-
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
15-
SYS_DIG_SECURE_URL: https://app.au1.sysdig.com
16-
1713
steps:
1814
- name: 🛎️ Checkout code
1915
uses: actions/checkout@v3
@@ -24,45 +20,48 @@ jobs:
2420
docker build -t worker ./worker
2521
docker build -t result ./result
2622
27-
- name: 🔍 Scan voting-app with Sysdig
23+
- name: 🛡️ Scan voting-app with Sysdig
24+
env:
25+
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
2826
run: |
2927
docker run --rm \
3028
--platform linux/amd64 \
3129
--user 0 \
32-
-v "${{ github.workspace }}/scan-logs:/home/nonroot/scan-logs" \
3330
-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 \
3532
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 \
3835
--skiptlsverify \
3936
docker://voting-app
4037
41-
- name: 🔍 Scan worker with Sysdig
38+
- name: 🛡️ Scan worker with Sysdig
39+
env:
40+
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
4241
run: |
4342
docker run --rm \
4443
--platform linux/amd64 \
4544
--user 0 \
46-
-v "${{ github.workspace }}/scan-logs:/home/nonroot/scan-logs" \
4745
-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 \
4947
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 \
5250
--skiptlsverify \
5351
docker://worker
5452
55-
- name: 🔍 Scan result with Sysdig
53+
- name: 🛡️ Scan result with Sysdig
54+
env:
55+
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
5656
run: |
5757
docker run --rm \
5858
--platform linux/amd64 \
5959
--user 0 \
60-
-v "${{ github.workspace }}/scan-logs:/home/nonroot/scan-logs" \
6160
-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 \
6362
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 \
6665
--skiptlsverify \
6766
docker://result
6867

0 commit comments

Comments
 (0)