CodeQL Security Analysis #7
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
| # SPDX-License-Identifier: PMPL-1.0-or-later | |
| # RSR-compliant CodeQL workflow with SHA-pinned actions | |
| name: "CodeQL" | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| schedule: | |
| - cron: '42 20 * * 0' | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| packages: read | |
| actions: read | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Uncomment languages used in your project | |
| # - language: rust | |
| # build-mode: manual | |
| # - language: go | |
| # build-mode: autobuild | |
| # - language: java-kotlin | |
| # build-mode: autobuild | |
| - language: javascript-typescript | |
| build-mode: none | |
| # - language: python | |
| # build-mode: none | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@ea9e4e37992a54ee68a9571571f9a567d8f90f78 # v3.28.0 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - name: Build (manual mode) | |
| if: matrix.build-mode == 'manual' | |
| shell: bash | |
| run: | | |
| # Manual build commands - uncomment the appropriate line for your language | |
| # Rust: cargo build --release | |
| # Elixir: mix compile | |
| # Go: go build ./... | |
| # Java: ./gradlew build || mvn compile | |
| echo "Configure your build command above for manual build mode languages" | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@ea9e4e37992a54ee68a9571571f9a567d8f90f78 # v3.28.0 | |
| with: | |
| category: "/language:${{ matrix.language }}" |