codeql-analysis.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. on:
  14. push:
  15. branches: [ master ]
  16. pull_request:
  17. # The branches below must be a subset of the branches above
  18. branches: [ master ]
  19. schedule:
  20. - cron: '18 19 * * 6'
  21. jobs:
  22. analyze:
  23. name: Analyze
  24. runs-on: ubuntu-latest
  25. strategy:
  26. fail-fast: false
  27. matrix:
  28. language: [ 'go' ]
  29. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
  30. # Learn more:
  31. # 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
  32. steps:
  33. - name: Checkout repository
  34. uses: actions/checkout@v2
  35. # Initializes the CodeQL tools for scanning.
  36. - name: Initialize CodeQL
  37. uses: github/codeql-action/init@v1
  38. with:
  39. languages: ${{ matrix.language }}
  40. # If you wish to specify custom queries, you can do so here or in a config file.
  41. # By default, queries listed here will override any specified in a config file.
  42. # Prefix the list here with "+" to use these queries and those in the config file.
  43. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  44. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  45. # If this step fails, then you should remove it and run the build manually (see below)
  46. - name: Autobuild
  47. uses: github/codeql-action/autobuild@v1
  48. # ℹ️ Command-line programs to run using the OS shell.
  49. # 📚 https://git.io/JvXDl
  50. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  51. # and modify them (or add more) to build your code if your project
  52. # uses a compiled language
  53. #- run: |
  54. # make bootstrap
  55. # make release
  56. - name: Perform CodeQL Analysis
  57. uses: github/codeql-action/analyze@v1