Skip to content

Commit

Permalink
Add GitHub Advanced Security requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
bensinclair committed Nov 1, 2024
1 parent e044faf commit 9cd2476
Show file tree
Hide file tree
Showing 4 changed files with 2,432 additions and 833 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "CodeQL"

on:
push:
branches: [ "qa", "master" ]
pull_request:
branches: [ "qa", "master" ]
schedule:
- cron: '30 12 * * 1'

jobs:
analyze:
strategy:
matrix:
php-versions: [ '7.4', '8.0' ]
name: Analyze PHP ${{ matrix.php-versions }}
uses: tithely/php-workflows/.github/workflows/codeql.yml@main
with:
github-event-name: ${{ github.event_name }}
php-version: ${{ matrix.php-versions }}
php-extensions: pdo_pgsql
secrets:
actions-access-token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"symfony/yaml": "^5.0"
"symfony/yaml": "^5.0",
"vimeo/psalm": "^5.7"
},
"scripts":{
"test": "./vendor/bin/phpunit -c phpunit.xml"
Expand Down
Loading

0 comments on commit 9cd2476

Please sign in to comment.