Skip to content

Commit c2c073c

Browse files
committed
Schedule scan workflow
1 parent 269d86f commit c2c073c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/scan.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ on:
3333
required: false
3434
type: string
3535
default: "nuget"
36+
schedule:
37+
- cron: "0 0 * * 3"
3638
jobs:
3739
determine-package-type:
3840
runs-on: ubuntu-latest
@@ -93,8 +95,8 @@ jobs:
9395
with:
9496
command: cves,recommendations
9597
image: local://${{ vars.IMAGE }}
96-
only-severities: ${{ inputs.severities || 'critical,high' }}
97-
only-package-types: ${{ needs.determine-package-type.outputs.package-types || inputs.package-types }}
98+
only-severities: ${{ inputs && inputs.severities || 'critical,high' }}
99+
only-package-types: ${{ (needs.determine-package-type && needs.determine-package-type.outputs.package-types) || (inputs && inputs.package-types) || '' }}
98100
only-fixed: true
99101
summary: true
100102
format: json

0 commit comments

Comments
 (0)