diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0e290410d0f..f30c5b73cca 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,11 +17,20 @@ jobs: strategy: fail-fast: false matrix: + branch: [ 'master', 'branch/v10', 'branch/v11', 'branch/v12' ] language: [ 'go', 'javascript' ] steps: - name: Checkout repository uses: actions/checkout@v3 + with: + ref: ${{ matrix.branch }} + + - name: Set up Go + uses: actions/setup-go@v4 + with: + cache-dependency-path: '**/go.sum' + if: ${{ matrix.language == 'go' }} - name: Initialize the CodeQL tools for scanning uses: github/codeql-action/init@v2