Skip to content

Commit 43e8d3b

Browse files
committed
IT-3421: Ensure repo' name is lower case
1 parent 3cc5085 commit 43e8d3b

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/trivy_periodic_image_scan.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,27 @@ on:
1313
- cron: "0 0 * * *"
1414

1515
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 }}
2239
...

0 commit comments

Comments
 (0)