Repository navigation
introduce CodeQL-based static analysis for TypeScript and Rust #5
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", "master", "develop" ] | |
| pull_request: | |
| branches: [ "main", "master", "develop" ] | |
| schedule: | |
| - cron: '28 17 * * 4' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'javascript-typescript', 'rust' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| queries: security-extended,security-and-quality | |
| - name: Build Rust (native) | |
| if: matrix.language == 'rust' | |
| run: | | |
| cargo build --manifest-path native/Cargo.toml | |
| cargo build --manifest-path tracer/Cargo.toml | |
| - name: Install dependencies (JS/TS) | |
| if: matrix.language == 'javascript-typescript' | |
| run: npm install --ignore-scripts | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:${{matrix.language}}" |