Scheduled Trivy Scan #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2023 Oracle Corporation and/or its affiliates. | |
# Licensed under the Universal Permissive License v 1.0 as shown at | |
# https://oss.oracle.com/licenses/upl. | |
# --------------------------------------------------------------------------- | |
# Coherence Python Client GitHub Actions Scheduled Trivy Scan | |
# --------------------------------------------------------------------------- | |
name: Scheduled Trivy Scan | |
on: | |
workflow_dispatch: | |
schedule: | |
# Every day at midnight | |
- cron: '0 0 * * *' | |
jobs: | |
trivy-scan: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/aquasecurity/trivy:latest | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /home/runner/work/coherence-py-client/coherence-py-client:/repo | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Trivy Scan | |
run: trivy fs --exit-code 1 --skip-dirs "/repo/tests/java" /repo |