File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 13
13
- cron : " 0 0 * * *"
14
14
15
15
jobs :
16
- trivy :
17
- name : trivy-periodic-scan
18
- uses : " ./.github/workflows/trivy.yml"
19
- with :
20
- SOURCE_TYPE : image
21
- IMAGE_NAME : ghcr.io/${{ github.repository }}:main
16
+ trivy-matrix :
17
+ name : ${{ matrix.notebook_type }}
18
+ runs-on : ubuntu-latest
19
+ strategy :
20
+ matrix :
21
+ notebook_type :
22
+ - jupyter
23
+ - rstudio
24
+
25
+ steps :
26
+ - name : Ensure image name is lower case
27
+ id : image_name
28
+ uses : vishalmamidi/lowercase-action@v1
29
+ with :
30
+ string : ghcr.io/${{ github.repository
31
+ }}-${{ matrix.notebook_type }}:main
32
+
33
+ - name : Run Trivy
34
+ uses : " ./.github/workflows/trivy.yml"
35
+ with :
36
+ NOTEBOOK_TYPE : ${{ matrix.notebook_type }}
37
+ SOURCE_TYPE : image
38
+ IMAGE_NAME : ${{ steps.image_name.outputs.lowercase }}
22
39
...
You can’t perform that action at this time.
0 commit comments