-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.08 KB
/
snyk-scan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Snyk Container Scan
on:
push:
branches:
- main
jobs:
snyk:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3 # Using the latest version
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 # Using the latest version
- name: Build API image
run: docker build -t n5gehtoolsmqtt-gateway-api:latest -f ./backend/api/Dockerfile .
- name: Build Gateway image
run: docker build -t n5gehtoolsmqtt-gateway-gateway:latest -f ./backend/gateway/Dockerfile .
- name: Snyk Scan API image
uses: snyk/actions/docker@master
with:
image: 'n5gehtoolsmqtt-gateway-api:latest'
args: '--severity-threshold=high'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
continue-on-error: true
- name: Snyk Scan Gateway image
uses: snyk/actions/docker@master
with:
image: 'n5gehtoolsmqtt-gateway-gateway:latest'
args: '--severity-threshold=high'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
continue-on-error: true