github.com/qiniu/go-sdk/v7@v7.27.0/.github/workflows/codeql-analysis.yml (about)

     1  # For most projects, this workflow file will not need changing; you simply need
     2  # to commit it to your repository.
     3  #
     4  # You may wish to alter this file to override the set of languages analyzed,
     5  # or to provide custom queries or build logic.
     6  #
     7  # ******** NOTE ********
     8  # We have attempted to detect the languages in your repository. Please check
     9  # the `language` matrix defined below to confirm you have the correct set of
    10  # supported CodeQL languages.
    11  #
    12  name: "CodeQL"
    13  
    14  on:
    15    push:
    16      branches: [ master ]
    17    pull_request:
    18      # The branches below must be a subset of the branches above
    19      branches: [ master ]
    20  
    21  jobs:
    22    analyze:
    23      name: Analyze
    24      runs-on: ubuntu-latest
    25      permissions:
    26        actions: read
    27        contents: read
    28        security-events: write
    29  
    30      strategy:
    31        fail-fast: false
    32        matrix:
    33          language: [ 'go' ]
    34      steps:
    35      - name: Checkout repository
    36        uses: actions/checkout@v2
    37      - name: Initialize CodeQL
    38        uses: github/codeql-action/init@v1
    39        with:
    40          languages: ${{ matrix.language }}
    41      - name: Autobuild
    42        uses: github/codeql-action/autobuild@v1
    43      - name: Perform CodeQL Analysis
    44        uses: github/codeql-action/analyze@v1