-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (35 loc) · 1017 Bytes
/
security.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
39
40
name: Security Check
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
permissions:
contents: read
security-events: write
jobs:
scan:
name: 'Image Scan (PHP: ${{ matrix.php-version }})'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version:
- '8.0'
- '8.1'
- '8.2'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pull image
run: docker pull friendsofshopware/production-docker-base:${{ matrix.php-version }}
- name: Scan for vulnerabilities
id: scan
uses: crazy-max/ghaction-container-scan@v3
with:
image: friendsofshopware/production-docker-base:${{ matrix.php-version }}
dockerfile: ./${{ matrix.php-version }}/Dockerfile
- name: Upload SARIF file
if: ${{ steps.scan.outputs.sarif != '' }}
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.scan.outputs.sarif }}