Skip to content

Commit e77b0f9

Browse files
authored
Make docker images scanner more flexible (#402)
* Make docker images scanner weekly and triggered on allowed images update * Fix syntax error * Add skip job so we can set scan images job as required
1 parent e8e9b02 commit e77b0f9

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/scan-docker-images-skip.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: "Scan docker images from the allowed docker images list"
22

33
on:
44
pull_request:
5-
paths:
6-
- '**.md'
7-
- 'library-and-framework-list*.json'
5+
paths-ignore:
6+
- 'tests/tck-build-logic/src/main/resources/allowed-docker-images'
87

98
jobs:
109
build:

.github/workflows/scan-docker-images.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: "Scan docker images from the allowed docker images list"
22

33
on:
4+
# we should run this job if somebody wants to add/update allowed docker images
45
pull_request:
5-
paths-ignore:
6-
- '**.md'
7-
- 'library-and-framework-list*.json'
6+
paths:
7+
- 'tests/tck-build-logic/src/main/resources/allowed-docker-images'
8+
# we should run this job once a week to check if new vulnerabilities are found in existing images
9+
schedule:
10+
- cron: "0 0 * * 6"
811

912
jobs:
1013
scan-images:

0 commit comments

Comments
 (0)