chore(bootstrap): RAN-46 engineering bootstrap (security, runbooks, OpenSSF wiring) #7
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
| # CodeQL code-scanning analysis for codeiq. | |
| # RAN-46 AC #4 (code scanning enabled). Runs on push, on PR, and on a weekly cron | |
| # so we don't drift if someone forgets to push for a while. | |
| # | |
| # Java is the only first-class language at the moment. The bundled React UI under | |
| # src/main/frontend is JS/TS — added as a second matrix entry so frontend changes | |
| # also get scanned without slowing down Java analysis. | |
| name: CodeQL | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| # Mondays 07:00 UTC | |
| - cron: "0 7 * * 1" | |
| workflow_dispatch: | |
| permissions: read-all | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| permissions: | |
| security-events: write | |
| packages: read | |
| contents: read | |
| actions: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: java-kotlin | |
| build-mode: manual | |
| - language: javascript-typescript | |
| build-mode: none | |
| steps: | |
| - name: Harden runner egress | |
| # step-security/harden-runner v2.19.0 | |
| uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| # actions/checkout v6.0.2 | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| persist-credentials: false | |
| - name: Set up JDK 25 | |
| if: matrix.language == 'java-kotlin' | |
| # actions/setup-java v5.2.0 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| distribution: temurin | |
| java-version: "25" | |
| cache: maven | |
| - name: Initialize CodeQL | |
| # github/codeql-action/init v3.35.2 | |
| uses: github/codeql-action/init@ce64ddcb0d8d890d2df4a9d1c04ff297367dea2a | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| queries: security-and-quality | |
| - name: Build with Maven (Java only) | |
| if: matrix.language == 'java-kotlin' | |
| run: mvn -B -ntp -DskipTests -Dspotbugs.skip=true -Ddependency-check.skip=true clean package | |
| - name: Perform CodeQL analysis | |
| # github/codeql-action/analyze v3.35.2 | |
| uses: github/codeql-action/analyze@ce64ddcb0d8d890d2df4a9d1c04ff297367dea2a | |
| with: | |
| category: "/language:${{ matrix.language }}" |