mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 07:58:55 +00:00
feature-5232-Trivy-Security-Scans
This commit is contained in:
parent
8a4302ffe6
commit
9ce24ff32c
1 changed files with 27 additions and 0 deletions
27
.github/workflows/trivy.yml
vendored
Normal file
27
.github/workflows/trivy.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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'
|
||||
Loading…
Reference in a new issue