Schedule - Scan Images #93
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
name: "Schedule - Scan Images" | |
on: # yamllint disable-line rule:truthy | |
schedule: | |
- cron: "0 12 * * 1" | |
workflow_dispatch: | |
# yamllint disable rule:line-length | |
jobs: | |
scan: | |
name: Trivy | |
runs-on: ubuntu-latest | |
if: github.repository == 'syself/cluster-api-provider-hetzner' | |
container: | |
image: ghcr.io/syself/caph-builder:1.0.21 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.github_token }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Fixup git permissions | |
# https://github.com/actions/checkout/issues/766 | |
shell: bash | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Verify Containers | |
env: | |
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
TRIVY_USERNAME: ${{ github.actor }} | |
run: make verify-container-images |