feat(backend,webapp): i18next JSON import + export (T301–T305) #147
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 | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| schedule: | |
| - cron: '17 3 * * 2' # weekly Tuesday 03:17 UTC | |
| concurrency: | |
| group: codeql-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| jobs: | |
| detect: | |
| name: detect languages | |
| runs-on: ubuntu-latest | |
| outputs: | |
| has_jsts: ${{ steps.check.outputs.has_jsts }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: check | |
| run: | | |
| # JS/TS analysis needs real source files; if webapp / sdks / cli haven't | |
| # been scaffolded yet CodeQL's JS/TS extractor fails with "no source". | |
| if [ -f webapp/package.json ] || [ -f sdks/js/package.json ] || [ -f sdks/react/package.json ] || [ -f cli/package.json ]; then | |
| echo "has_jsts=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "has_jsts=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| analyze: | |
| name: analyze (${{ matrix.language }}) | |
| needs: detect | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: java-kotlin | |
| build-mode: autobuild | |
| - language: javascript-typescript | |
| build-mode: none | |
| - language: actions | |
| build-mode: none | |
| steps: | |
| - name: Skip JS/TS when no JS/TS source yet | |
| if: matrix.language == 'javascript-typescript' && needs.detect.outputs.has_jsts != 'true' | |
| run: echo "No JS/TS source in repo yet — skipping to avoid CodeQL no-source error." | |
| - uses: actions/checkout@v4 | |
| if: matrix.language != 'javascript-typescript' || needs.detect.outputs.has_jsts == 'true' | |
| - name: Set up JDK 21 | |
| if: matrix.language == 'java-kotlin' | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Initialize CodeQL | |
| if: matrix.language != 'javascript-typescript' || needs.detect.outputs.has_jsts == 'true' | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| queries: security-and-quality | |
| - name: Analyze | |
| if: matrix.language != 'javascript-typescript' || needs.detect.outputs.has_jsts == 'true' | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:${{ matrix.language }}" |