--- 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@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - name: Install Go uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 with: go-version-file: go.mod # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # v4.31.4 with: build-mode: ${{ matrix.language == 'go' && 'autobuild' || '' }} languages: ${{ matrix.language }} - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # v4.31.4 with: category: '/language:${{matrix.language}}'