forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.08 KB
/
vulnerability_check.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
name: Container Scan
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and load CKAN
uses: docker/build-push-action@v4
with:
context: ./ckan
load: true
tags: ckan-docker/ckan:latest
- name: Build and load CKAN xloader
uses: docker/build-push-action@v4
with:
context: ./ckan/ckanext-xloader
load: true
tags: ckan-docker/ckan:latest
- name: Scan for vulnerabilities for CKAN image
uses: crazy-max/ghaction-container-scan@v3
with:
image: ckan-docker/ckan:latest
dockerfile: ./ckan/Dockerfile
- name: Scan for vulnerabilities for CKAN xloader image
uses: crazy-max/ghaction-container-scan@v3
with:
image: ckan-docker/ckan-xloader:latest
dockerfile: ./ckan/ckanext-xloader/Dockerfile