Skip to content

Commit

Permalink
add branch parameter to trivy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zLukas authored and Mionsz committed Oct 29, 2024
1 parent a3b8188 commit b070b0f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ on:
push:
workflow_call:
workflow_dispatch:
branches: [main]
inputs:
branch:
description: 'branch to run scans on'
default: 'main'
type: string

env:
BUILD_TYPE: "Release"
Expand All @@ -29,6 +33,8 @@ jobs:

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

- name: Run Trivy 'config' type vulnerability scanner.
uses: aquasecurity/trivy-action@595be6a0f6560a0a8fc419ddf630567fc623531d # v0.22.0
Expand Down

0 comments on commit b070b0f

Please sign in to comment.