Skip to content

Commit f8db407

Browse files
committed
fix: apply condition only to substeps in owasp check
1 parent 3380681 commit f8db407

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/backend_owasp_dependency_check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
jobs:
1616
owasp-dependency-check:
1717
name: OWASP Dependency Check
18-
if: ${{ inputs.enable }}
1918
runs-on: ubuntu-latest
2019
timeout-minutes: 100
2120
steps:
@@ -48,6 +47,7 @@ jobs:
4847
shell: bash
4948

5049
- name: Restore Dependency-Check Cache
50+
if: inputs.enable
5151
uses: actions/cache/restore@v5
5252
with:
5353
path: ${{ github.workspace }}/.dependency-check
@@ -56,6 +56,7 @@ jobs:
5656
${{ runner.os }}-dependency-check-
5757
5858
- name: Run OWASP Dependency Check
59+
if: inputs.enable
5960
run: |
6061
mvn org.owasp:dependency-check-maven:check \
6162
-DdataDirectory="${{ github.workspace }}/.dependency-check" \
@@ -67,7 +68,7 @@ jobs:
6768
6869
- name: Save Dependency-Check Cache
6970
uses: actions/cache/save@v5
70-
if: always()
71+
if: inputs.enable
7172
with:
7273
path: ${{ github.workspace }}/.dependency-check
7374
key: ${{ runner.os }}-dependency-check-${{ steps.get-cache-date.outputs.date }}

0 commit comments

Comments
 (0)