github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/.github/workflows/codeql-analysis.yml (about)

     1  name: CodeQL
     2  
     3  on:
     4    push:
     5      branches: [master]
     6      paths:
     7        - "**/*.go"
     8    pull_request:
     9      branches: [master]
    10      types: [opened, synchronize, reopened]
    11      paths:
    12        - "**/*.go"
    13    schedule:
    14      - cron: '0 0 * * 1'
    15  
    16  jobs:
    17    analyze:
    18      if: github.repository != 'v2ray/v2ray-core'
    19      runs-on: ubuntu-latest
    20      strategy:
    21        fail-fast: false
    22        matrix:
    23          # Override automatic language detection by changing the below list
    24          # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
    25          language: ['go']
    26          # Learn more...
    27          # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
    28  
    29      steps:
    30      - name: Checkout repository
    31        uses: actions/checkout@v2
    32        with:
    33          # We must fetch at least the immediate parents so that if this is
    34          # a pull request then we can checkout the head.
    35          fetch-depth: 2
    36  
    37      # If this run was triggered by a pull request event, then checkout
    38      # the head of the pull request instead of the merge commit.
    39      - run: git checkout HEAD^2
    40        if: ${{ github.event_name == 'pull_request' }}
    41  
    42      # Initializes the CodeQL tools for scanning.
    43      - name: Initialize CodeQL
    44        uses: github/codeql-action/init@v1
    45        with:
    46          languages: ${{ matrix.language }}
    47          # If you wish to specify custom queries, you can do so here or in a config file.
    48          # By default, queries listed here will override any specified in a config file. 
    49          # Prefix the list here with "+" to use these queries and those in the config file.
    50          # queries: ./path/to/local/query, your-org/your-repo/queries@main
    51  
    52      # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
    53      # If this step fails, then you should remove it and run the build manually (see below)
    54      - name: Autobuild
    55        uses: github/codeql-action/autobuild@v1
    56  
    57      # ℹī¸ Command-line programs to run using the OS shell.
    58      # 📚 https://git.io/JvXDl
    59  
    60      # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines
    61      #    and modify them (or add more) to build your code if your project
    62      #    uses a compiled language
    63  
    64      #- run: |
    65      #   make bootstrap
    66      #   make release
    67  
    68      - name: Perform CodeQL Analysis
    69        uses: github/codeql-action/analyze@v1