Use query lib #4166
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: "CodeQL" | |
| on: [ pull_request, workflow_dispatch ] | |
| jobs: | |
| lint: | |
| name: CodeQL | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 2 | |
| - run: git checkout HEAD^2 | |
| if: github.event_name == 'pull_request' | |
| - name: Run CodeQL | |
| run: | | |
| container=$(docker create composer:2.8) | |
| docker cp "$container":/usr/bin/composer /tmp/composer | |
| docker rm "$container" | |
| docker run --rm -v $PWD:/app -v /tmp/composer:/usr/local/bin/composer:ro -w /app php:8.5.8-cli-alpine sh -c \ | |
| "composer install --profile --ignore-platform-req='ext-*' && \ | |
| composer check" |