Merge pull request #1 from InitPHP/2.x #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Security | |
| on: | |
| push: | |
| branches: [main, 2.x, 1.x] | |
| pull_request: | |
| branches: [main, 2.x, 1.x] | |
| schedule: | |
| - cron: '17 6 * * 1' | |
| permissions: | |
| contents: read | |
| jobs: | |
| composer-audit: | |
| name: composer audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| extensions: openssl, sodium | |
| coverage: none | |
| tools: composer:v2 | |
| - name: Install dependencies | |
| run: composer update --no-interaction --no-progress --prefer-dist | |
| - name: Run composer audit | |
| run: composer audit --no-dev --locked || composer audit |