codeql-analysis.yml 2.5 KB

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