mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
27 lines
541 B
YAML
27 lines
541 B
YAML
name: Trivy
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
scan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
|
|
- name: Build the Docker image
|
|
run: docker build . -t appwrite_image:latest
|
|
|
|
- name: Run Trivy vulnerability scanner
|
|
uses: aquasecurity/trivy-action@master
|
|
with:
|
|
image-ref: 'appwrite_image:latest'
|
|
format: 'table'
|
|
exit-code: '1'
|
|
ignore-unfixed: 'false'
|
|
severity: 'CRITICAL,HIGH'
|