Repository navigation
perf: avoid copying already rooted request paths #158
Workflow file for this run
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 | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "docs/**" | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "docs/**" | |
| schedule: | |
| - cron: "17 4 * * 1" | |
| permissions: | |
| contents: read | |
| env: | |
| GOTOOLCHAIN: local | |
| GOFLAGS: "-tags=nowatcher,nobadger,nomysql,nopgx" | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: actions | |
| build-mode: none | |
| - language: c-cpp | |
| build-mode: manual | |
| - language: go | |
| build-mode: manual | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - if: matrix.build-mode == 'manual' | |
| uses: ./.github/actions/setup-go | |
| with: | |
| # A warm build cache skips the compiler calls the extractors trace | |
| cache: "false" | |
| - if: matrix.build-mode == 'manual' | |
| uses: ./.github/actions/setup-php | |
| - name: Install libbrotli-dev | |
| if: matrix.build-mode == 'manual' | |
| run: sudo apt-get install -y libbrotli-dev | |
| - name: Set CGO flags | |
| if: matrix.build-mode == 'manual' | |
| run: echo "CGO_CFLAGS=$(php-config --includes)" >> "${GITHUB_ENV}" | |
| - uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - name: Build | |
| if: matrix.build-mode == 'manual' | |
| run: go build ./... | |
| - name: Build Caddy module | |
| if: matrix.build-mode == 'manual' | |
| working-directory: caddy/ | |
| run: go build ./... | |
| - uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 | |
| with: | |
| category: /language:${{ matrix.language }} |