File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,6 +130,43 @@ jobs:
130130 - name : Run PHPStan
131131 run : XDEBUG_MODE=off tools/phpstan analyse --no-progress --error-format=github
132132
133+ dependency-audit :
134+ name : Composer Audit
135+ needs :
136+ - dependency-validation
137+ runs-on : ubuntu-latest
138+ timeout-minutes : 10
139+
140+ steps :
141+ - name : Checkout code
142+ uses : actions/checkout@v6
143+
144+ - name : Setup PHP
145+ uses : shivammathur/setup-php@v2
146+ with :
147+ php-version : " 8.5"
148+ tools : composer
149+ coverage : none
150+
151+ - name : Get Composer cache directory
152+ id : composer-cache
153+ shell : bash
154+ run : |
155+ echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
156+
157+ - name : Cache Composer cache directory
158+ uses : actions/cache@v5
159+ with :
160+ path : ${{ steps.composer-cache.outputs.dir }}
161+ key : ${{ runner.os }}-composer-${{ hashFiles('composer.json', 'composer.lock') }}
162+ restore-keys : ${{ runner.os }}-composer-
163+
164+ - name : Install dependencies with Composer
165+ run : composer install --no-interaction --no-progress --ansi --ignore-platform-req=ext-grpc
166+
167+ - name : Run Composer Audit
168+ run : composer audit --no-interaction --format=summary --abandoned=report --ansi
169+
133170 lint :
134171 name : " Lint (${{ matrix.name }})"
135172 needs :
You can’t perform that action at this time.
0 commit comments