forked from InseeFrLab/images-datascience
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.47 KB
/
security-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: scan all images
on:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
image: ['inseefrlab/onyxia-base:latest', 'inseefrlab/onyxia-base:latest-gpu',
'inseefrlab/onyxia-python:latest', 'inseefrlab/onyxia-python:latest-gpu',
'inseefrlab/onyxia-jupyter-python:latest', 'inseefrlab/onyxia-jupyter-python:latest-gpu',
'inseefrlab/onyxia-vscode-python:latest', 'inseefrlab/onyxia-vscode-python:latest-gpu',
'inseefrlab/onyxia-pyspark:latest', 'inseefrlab/onyxia-pyspark:latest-gpu',
'inseefrlab/onyxia-rstudio:latest', 'inseefrlab/onyxia-rstudio:latest-gpu',
'inseefrlab/onyxia-sparkr:latest', 'inseefrlab/onyxia-sparkr:latest-gpu',
'inseefrlab/onyxia-rstudio-sparkr:latest', 'inseefrlab/onyxia-rstudio-sparkr:latest-gpu']
name: scan images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ matrix.image }}
format: 'sarif'
output: 'trivy-results.sarif'
timeout: '30m0s'
security-checks: 'vuln'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
category: ${{ matrix.image }}