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