--- name: 'CodeQL' on: push: branches: ['master'] pull_request: # The branches below must be a subset of the branches above branches: ['master'] schedule: - cron: '38 21 * * 3' jobs: analyze: name: Analyze runs-on: 'ubuntu-latest' timeout-minutes: 360 permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: ['go', 'javascript'] steps: - name: Checkout repository uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 - name: Install Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 with: go-version-file: go.mod # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9 with: build-mode: ${{ matrix.language == 'go' && 'autobuild' || '' }} languages: ${{ matrix.language }} - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9 with: category: '/language:${{matrix.language}}'