Merge pull request #31 from N5GEH/11-implementation-of-multiple-fiwar… #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |