CodeQL #45
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '23 4 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: actions | |
| build-mode: none | |
| tools: linked | |
| - language: go | |
| build-mode: manual | |
| tools: nightly | |
| - language: javascript-typescript | |
| build-mode: none | |
| tools: linked | |
| - language: python | |
| build-mode: none | |
| tools: linked | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Set up Node.js | |
| if: matrix.language == 'go' | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Build frontend | |
| if: matrix.language == 'go' | |
| working-directory: frontend | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Set up Go | |
| if: matrix.language == 'go' | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@37f2634a92ba38a0926ef79a0748ac8ae7d95ab2 # v4.37.8 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| # The stable 2.26.3 bundle predates Go 1.27 support. | |
| tools: ${{ matrix.tools }} | |
| - name: Build Go | |
| if: matrix.language == 'go' | |
| run: go build ./... | |
| - name: Analyze | |
| uses: github/codeql-action/analyze@37f2634a92ba38a0926ef79a0748ac8ae7d95ab2 # v4.37.8 |