Enhance RDMA connection handling and interface resolution #1052
Workflow file for this run
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: scan-trivy-workflow | |
on: | |
push: | |
branches: [ "main", "maint-*" ] | |
pull_request: | |
branches: [ "main", "maint-*" ] | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'branch to run scans on' | |
default: 'main' | |
type: string | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
scan: | |
permissions: | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
runs-on: ubuntu-22.04 | |
name: "Trivy: Perform scans job" | |
steps: | |
- name: "Trivy: Harden Runner" | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- name: "Trivy: Checkout code" | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
ref: ${{ inputs.branch }} | |
- name: "Trivy: Run vulnerability scanner for type=config (out=sarif)" | |
uses: aquasecurity/trivy-action@7c2007bcb556501da015201bcba5aa14069b74e2 # v0.23.0 | |
with: | |
scan-type: config | |
skip-dirs: deployment #helm charts not supported | |
exit-code: '0' | |
format: 'sarif' | |
output: "trivy-config-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif" | |
- name: "Trivy: Run vulnerability scanner for type=config (out=table)" | |
if: always() | |
uses: aquasecurity/trivy-action@7c2007bcb556501da015201bcba5aa14069b74e2 # v0.23.0 | |
with: | |
scan-type: config | |
skip-dirs: deployment #helm charts not supported | |
exit-code: '0' | |
format: 'table' | |
output: "trivy-config-scan-results-${{ github.event.pull_request.number || github.sha }}.txt" | |
- name: "Trivy: Upload scan results to GitHub Security tab" | |
if: always() | |
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11 | |
with: | |
sarif_file: "trivy-config-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif" | |
- name: "Trivy: Upload scan results as artifacts (out=sarif)" | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # V4.4.3 | |
if: always() | |
with: | |
name: "trivy-config-scan-results-sarif-${{ github.event.pull_request.number || github.sha }}" | |
path: "trivy-config-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif" | |
retention-days: 5 | |
- name: "Trivy: Upload scan results as artifacts (out=table)" | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # V4.4.3 | |
if: always() | |
with: | |
name: "trivy-config-scan-results-table-${{ github.event.pull_request.number || github.sha }}" | |
path: "trivy-config-scan-results-${{ github.event.pull_request.number || github.sha }}.txt" | |
retention-days: 5 |