You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
536 B
28 lines
536 B
name: Lint |
|
|
|
on: |
|
push: |
|
branches: |
|
- develop |
|
paths: |
|
- 'Dockerfile' |
|
pull_request: |
|
branches: |
|
- develop |
|
paths: |
|
- 'Dockerfile' |
|
|
|
jobs: |
|
trivy: |
|
name: Dockerfile |
|
runs-on: ubuntu-latest |
|
container: |
|
image: aquasec/trivy |
|
steps: |
|
- uses: actions/checkout@v3 |
|
|
|
- name: Check critical issues |
|
run: trivy config --exit-code 1 --severity "HIGH,CRITICAL" ./Dockerfile |
|
|
|
- name: Check non-critical issues |
|
run: trivy config --severity "LOW,MEDIUM" ./Dockerfile
|
|
|