Skip to content

Commit

Permalink
IT-3421: Ensure repo' name is lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
brucehoff committed Jul 31, 2024
1 parent 3cc5085 commit 43e8d3b
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/trivy_periodic_image_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,27 @@ on:
- cron: "0 0 * * *"

jobs:
trivy:
name: trivy-periodic-scan
uses: "./.github/workflows/trivy.yml"
with:
SOURCE_TYPE: image
IMAGE_NAME: ghcr.io/${{ github.repository }}:main
trivy-matrix:
name: ${{ matrix.notebook_type }}
runs-on: ubuntu-latest
strategy:
matrix:
notebook_type:
- jupyter
- rstudio

steps:
- name: Ensure image name is lower case
id: image_name
uses: vishalmamidi/lowercase-action@v1
with:
string: ghcr.io/${{ github.repository
}}-${{ matrix.notebook_type }}:main

- name: Run Trivy
uses: "./.github/workflows/trivy.yml"
with:
NOTEBOOK_TYPE: ${{ matrix.notebook_type }}
SOURCE_TYPE: image
IMAGE_NAME: ${{ steps.image_name.outputs.lowercase }}
...

0 comments on commit 43e8d3b

Please sign in to comment.