mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
36 lines
830 B
YAML
36 lines
830 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:
|
|
- name: Check out pull request code
|
|
uses: actions/checkout@v4
|
|
if: github.event_name == 'pull_request'
|
|
with:
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
if: github.event_name == 'push'
|
|
|
|
- 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
|