build(deps): bump distroless/static from d71f4b2
to 6cd937e
in /t…
#891
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: Trivy | |
on: | |
push: | |
branches: | |
- "main" | |
schedule: | |
- cron: '55 17 * * 5' | |
permissions: | |
contents: read | |
jobs: | |
image-scan: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
name: Image Scan | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Build an image from Dockerfile | |
run: | | |
IMAGE=envoy-proxy/gateway-dev TAG=${{ github.sha }} make image | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0 | |
with: | |
image-ref: envoy-proxy/gateway-dev:${{ github.sha }} | |
exit-code: '1' |