name: Scheduled checks # What was released does not stay safe: new vulnerabilities are found in old dependencies. Every # Monday the released code is checked again; a red run is the signal. on: schedule: - cron: '30 5 * * 1' workflow_dispatch: jobs: audit: runs-on: docker container: image: webdevops/php:8.4 steps: - name: checkout production uses: actions/checkout@v4 with: ref: production - name: install dependencies run: composer update --prefer-stable --prefer-dist --no-scripts - name: composer audit run: composer audit - name: install trivy run: .gitea/scripts/install-trivy.sh - name: trivy run: | trivy fs --no-progress --scanners vuln,secret,misconfig --severity HIGH,CRITICAL --exit-code 1 --skip-dirs vendor .