-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (36 loc) · 1.12 KB
/
pull_request.yaml
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: build docker image
# on:
# pull_request:
# jobs:
# lint:
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: lint
# uses: luke142367/[email protected]
# with:
# target: Dockerfile
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# build-image:
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: setup qemu
# uses: docker/setup-qemu-action@v1
# - name: setup docker buildx
# uses: docker/setup-buildx-action@v1
# - name: build image
# run: |
# docker build -t 265389612123.dkr.ecr.eu-central-1.amazonaws.com/frontend:${{ github.sha }} .
# - name: scan for vulnerabilities
# uses: aquasecurity/trivy-action@master
# with:
# image-ref: '265389612123.dkr.ecr.eu-central-1.amazonaws.com/frontend:${{ github.sha }}'
# format: 'table'
# exit-code: '1'
# ignore-unfixed: true
# vuln-type: 'os'
# severity: 'CRITICAL,HIGH'