Sre 2505 trivy #224
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
# SPDX-License-Identifier: BSD-2-Clause-Patent | |
# Copyright (c) 2024 Intel Corporation. | |
name: Trivy scan | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: ["master", "release/**"] | |
pull_request: | |
branches: ["master", "release/**"] | |
# Declare default permissions as nothing. | |
permissions: {} | |
jobs: | |
scan: | |
name: Scan with Trivy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Run Trivy vulnerability scanner in filesystem mode (table format) | |
uses: grom72/trivy-action@skip-download | |
with: | |
scan-type: 'fs' | |
scan-ref: '.' | |
trivy-config: 'utils/trivy/trivy.yaml' |