--- 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.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@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11 with: build-mode: ${{ matrix.language == 'go' && 'autobuild' || '' }} languages: ${{ matrix.language }} - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11 with: category: '/language:${{matrix.language}}'