github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/.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 schedule: 21 - cron: '23 6 * * 5' 22 23 permissions: 24 contents: read 25 26 jobs: 27 analyze: 28 permissions: 29 actions: read # for github/codeql-action/init to get workflow details 30 contents: read # for actions/checkout to fetch code 31 security-events: write # for github/codeql-action/autobuild to send a status report 32 name: Analyze 33 runs-on: ubuntu-latest 34 35 strategy: 36 fail-fast: false 37 matrix: 38 language: [ 'go' ] 39 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] 40 # Learn more: 41 # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed 42 43 steps: 44 - name: Checkout repository 45 uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 46 47 # Initializes the CodeQL tools for scanning. 48 - name: Initialize CodeQL 49 uses: github/codeql-action/init@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5 50 with: 51 languages: ${{ matrix.language }} 52 # If you wish to specify custom queries, you can do so here or in a config file. 53 # By default, queries listed here will override any specified in a config file. 54 # Prefix the list here with "+" to use these queries and those in the config file. 55 # queries: ./path/to/local/query, your-org/your-repo/queries@main 56 57 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 58 # If this step fails, then you should remove it and run the build manually (see below) 59 - name: Autobuild 60 uses: github/codeql-action/autobuild@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5 61 62 # âšī¸ Command-line programs to run using the OS shell. 63 # đ https://git.io/JvXDl 64 65 # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines 66 # and modify them (or add more) to build your code if your project 67 # uses a compiled language 68 69 #- run: | 70 # make bootstrap 71 # make release 72 73 - name: Perform CodeQL Analysis 74 uses: github/codeql-action/analyze@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5