Debian Codegraph @

.github/workflows/codeql-analysis.yml

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