-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 914 Bytes
/
check-code.yml
File metadata and controls
42 lines (32 loc) · 914 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
39
40
41
42
name: "Check Code"
permissions:
contents: read
on:
push:
defaults:
run:
shell: bash
working-directory: ./packages/default/sentry
jobs:
check-code:
name: Check Code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: mbstring, xml, zip, curl, gd, bcmath, exif, fileinfo, intl, json, mysqli, pdo_mysql, soap, sqlite3
tools: composer:v2
- name: Install dependencies
run: |
composer install --prefer-dist --no-progress --no-interaction
composer global require enlightn/security-checker
- name: Check code
run: sh check-code.sh
- name: Check security
run: |
security-checker security:check composer.lock
composer audit