mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 19:19:06 +03:00
7b8ea4cefa
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
28 lines
536 B
YAML
28 lines
536 B
YAML
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@v4
|
|
|
|
- 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
|