Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trivy action corrected #8

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 12 additions & 17 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Trivy for Intel® Tiber™ Broadcast Suite
on:
push:
pull_request:
workflow_call:
workflow_dispatch:
branches: [main]
inputs:
branch:
description: 'branch to run scans on'
default: 'main'
type: string


env:
BUILD_TYPE: "Release"
Expand All @@ -18,6 +24,9 @@ jobs:
checkout_code:
name: "Node Preparations for Intel® Tiber™ Broadcast Suite"
runs-on: ubuntu-22.04
permissions:
contents: read
security-events: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
Expand All @@ -26,15 +35,9 @@ jobs:

- name: Checkout code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: ${{ inputs.branch }}

trivy-code-scan:
name: "Code-Scan for Intel® Tiber™ Broadcast Suite"
runs-on: ubuntu-22.04
needs: checkout_code
permissions:
contents: read
security-events: write
steps:
- name: Run Trivy 'config' type vulnerability scanner.
uses: aquasecurity/trivy-action@595be6a0f6560a0a8fc419ddf630567fc623531d # v0.22.0
with:
Expand All @@ -50,14 +53,6 @@ jobs:
with:
sarif_file: 'trivy-config-tiber-results.sarif'

trivy-fs-scan:
name: "Code-FS-Scan for Intel® Tiber™ Broadcast Suite"
runs-on: ubuntu-22.04
needs: checkout_code
permissions:
contents: read
security-events: write
steps:
- name: Run Trivy 'fs' type vulnerability scanner.
uses: aquasecurity/trivy-action@595be6a0f6560a0a8fc419ddf630567fc623531d # v0.22.0
with:
Expand Down