Skip to content

Commit

Permalink
chris.bono@gmail.com
Browse files Browse the repository at this point in the history
Add a flag named `enableSecurityScan` to manage execution of trivy scan that will be `false` by default.
  • Loading branch information
corneil authored Nov 14, 2024
1 parent e056251 commit f5ace9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
required: false
default: '1'
description: 'Maven Thread Option. Examples 0.5C, 2'
enableSecurityScan:
type: boolean
required: false
default: false
description: 'Enable security scan with Trivy'
secrets:
DOCKERHUB_USERNAME:
DOCKERHUB_TOKEN:
Expand All @@ -38,7 +43,7 @@ env:

jobs:
scan:
if: ${{ github.repository == 'spring-cloud/stream-applications' }}
if: ${{ inputs.enableSecurityScan && github.repository == 'spring-cloud/stream-applications' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit f5ace9a

Please sign in to comment.