-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (27 loc) · 1.06 KB
/
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
name: Security
on:
schedule:
- cron: "15 21 * * 2,3" # UTC Wed,Thurs
workflow_dispatch: ~
push:
branches:
- security # This is a branch that we can push to for testing.
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
# https://github.com/GoogleContainerTools/container-structure-test?tab=readme-ov-file#linux
- name: Install Container Structure Tests
run: |
curl -LO https://github.com/GoogleContainerTools/container-structure-test/releases/latest/download/container-structure-test-linux-amd64
chmod +x container-structure-test-linux-amd64
mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test
# https://github.com/anchore/grype?tab=readme-ov-file#recommended
- name: Install Grype
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
- name: Build and Scan
run: |
make security PHP_VERSION=8.3