Skip to content

Commit cc06fca

Browse files
committed
ci: add security workflow
1 parent 62f0112 commit cc06fca

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/security.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: security
2+
3+
on:
4+
push:
5+
branches:
6+
- 'gh-pages'
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
security:
17+
name: Security on PHP ${{ matrix.php-version }} (Ubuntu 24.04)
18+
runs-on: ubuntu-24.04
19+
strategy:
20+
matrix:
21+
php-version:
22+
- '8.4'
23+
steps:
24+
- name: Setup PHP ${{ matrix.php-version }}
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php-version }}
28+
29+
- name: Checkout Repository
30+
uses: actions/checkout@v4
31+
32+
- name: Install Dependencies
33+
run: composer install --prefer-dist --no-interaction --no-progress --dev
34+
35+
- name: Run Composer Audit
36+
run: composer audit

0 commit comments

Comments
 (0)