Repository navigation
69 lines (56 loc) · 1.74 KB
/
Copy pathsecurity.yml
File metadata and controls
69 lines (56 loc) · 1.74 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Security Audit
on:
workflow_dispatch:
push:
branches: [ "master", "*.*-dev" ]
pull_request:
branches: [ "master", "*.*-dev" ]
schedule:
- cron: '0 8 * * 1' # Weekly on Monday at 8am UTC
jobs:
composer-audit:
name: Composer Security Audit
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: redis, gd, ldap, mbstring, pdo_mysql, zip, bcmath, exif, pcntl
- name: Install Composer Dependencies
run: composer install --no-dev --no-interaction --prefer-dist
- name: Run Composer Audit
run: composer audit --format=summary
continue-on-error: true
npm-audit:
name: NPM Security Audit
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install NPM Dependencies
run: npm ci
# Gate on what ships: runtime dependencies. Build/test tooling (laravel-mix, webpack, selenium)
# is reported below but does not block, since it never reaches users and some of its
# advisories have no patched release.
- name: Run NPM Audit (runtime dependencies)
run: npm audit --omit=dev --audit-level=high
- name: Report NPM Audit (all dependencies)
run: npm audit --audit-level=high || true
codeql:
name: CodeQL Analysis
runs-on: ubuntu-24.04
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3