name: "CodeQL" on: workflow_call: push: branches: - main jobs: analyze: name: analyze-${{ matrix.working-directory }} runs-on: ${{ (matrix.language == 'swift' && 'macos-14-xlarge') || 'ubuntu-22.04-xlarge' }} timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: include: - language: "javascript-typescript" working-directory: "website/" - language: "javascript-typescript" working-directory: "elixir/apps/web/assets/" # TODO # - language: 'java-kotlin' # working-directory: 'kotlin/android' # - language: 'swift' # working-directory: 'swift/apple' steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Autobuild uses: github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 with: working-directory: ${{ matrix.working-directory }} - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 with: category: "/language:${{matrix.language}}"