41 lines
841 B
YAML
41 lines
841 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test-setup-trivy:
|
|
name: Test Setup Trivy
|
|
runs-on:
|
|
- ubuntu-latest
|
|
- linux_amd64
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Trivy
|
|
uses: ./setup-trivy
|
|
with:
|
|
version: v0.66.0
|
|
architecture: amd64
|
|
- name: Run Trivy
|
|
run: trivy --version
|
|
|
|
test-setup-db:
|
|
name: Test Setup DB
|
|
runs-on:
|
|
- ubuntu-latest
|
|
- linux_amd64
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: ./setup-trivy
|
|
with:
|
|
version: v0.66.0
|
|
architecture: amd64
|
|
- name: Setup DB
|
|
uses: ./setup-db
|
|
with:
|
|
cache-dir: ${{ runner.temp }}/trivy
|
|
- name: Run Trivy
|
|
env:
|
|
TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy
|
|
run: trivy fs --skip-db-update .
|