mirror of
https://github.com/owncast/owncast.git
synced 2024-12-19 15:56:47 +03:00
29 lines
532 B
YAML
29 lines
532 B
YAML
|
name: Lint
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- webv2
|
||
|
paths:
|
||
|
- 'Dockerfile'
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- webv2
|
||
|
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
|