Skip to content

Commit

Permalink
add install test
Browse files Browse the repository at this point in the history
  • Loading branch information
madflow committed Nov 26, 2024
1 parent b208222 commit 7fd0262
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Install test
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:

jobs:
build:
name: Install test
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Trivy
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db,aquasec/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db
uses: aquasecurity/setup-trivy@v0.2.2
with:
version: v0.57.1
- name: Install Plugin
run: |
trivy plugin install github.com/madflow/trivy-plugin-notify
- name: Run Trivy with plugin
run: trivy fs -f json -o plugin=notify --output-plugin-arg "--providers=console" .

0 comments on commit 7fd0262

Please sign in to comment.