-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 809 Bytes
/
security.yml
File metadata and controls
38 lines (32 loc) · 809 Bytes
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: Security Audit
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: security-${{ github.ref }}
cancel-in-progress: true
jobs:
composer-audit:
name: Composer Audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
coverage: none
tools: composer:v2
- name: Run composer audit
run: |
composer validate --strict
# Use --locked to audit the lock file and avoid network noise
if [ -f composer.lock ]; then
composer audit --locked --no-interaction
else
composer audit --no-interaction
fi