github.com/go-graphite/carbonapi@v0.17.0/.github/workflows/codeql.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 name: "CodeQL" 7 8 on: 9 push: 10 branches: [main] 11 pull_request: 12 # The branches below must be a subset of the branches above 13 branches: [main] 14 15 jobs: 16 analyze: 17 name: Analyze 18 runs-on: ubuntu-latest 19 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@v4 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 # Initializes the CodeQL tools for scanning. 38 - name: Initialize CodeQL 39 uses: github/codeql-action/init@v3 40 with: 41 languages: ${{ matrix.language }} 42 # If you wish to specify custom queries, you can do so here or in a config file. 43 # By default, queries listed here will override any specified in a config file. 44 # Prefix the list here with "+" to use these queries and those in the config file. 45 # queries: ./path/to/local/query, your-org/your-repo/queries@main 46 47 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 48 # If this step fails, then you should remove it and run the build manually (see below) 49 - name: Autobuild 50 uses: github/codeql-action/autobuild@v3 51 52 # âšī¸ Command-line programs to run using the OS shell. 53 # đ https://git.io/JvXDl 54 55 # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines 56 # and modify them (or add more) to build your code if your project 57 # uses a compiled language 58 59 #- run: | 60 # make bootstrap 61 # make release 62 63 - name: Perform CodeQL Analysis 64 uses: github/codeql-action/analyze@v3