codeql-analysis.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # For more info see https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#scanning-on-push
  2. name: "Code scanning"
  3. on:
  4. push:
  5. branches: [main, v2_release]
  6. paths-ignore:
  7. - '**/*.md'
  8. - '**/*.txt'
  9. - '**/*.html'
  10. - docs
  11. - docfx
  12. pull_request:
  13. branches: [main, v2_release]
  14. paths-ignore:
  15. - '**/*.md'
  16. - '**/*.txt'
  17. - '**/*.html'
  18. - docs
  19. - docfx
  20. # Scan every Monday
  21. schedule:
  22. - cron: '20 14 * * 1'
  23. jobs:
  24. CodeQL-Build:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Checkout repository
  28. uses: actions/checkout@v3
  29. with:
  30. # We must fetch at least the immediate parents so that if this is
  31. # a pull request then we can checkout the head.
  32. fetch-depth: 2
  33. # If this run was triggered by a pull request event, then checkout
  34. # the head of the pull request instead of the merge commit.
  35. #- run: git checkout HEAD^2
  36. # if: ${{ github.event_name == 'pull_request' }}
  37. # Initializes the CodeQL tools for scanning.
  38. - name: Initialize CodeQL
  39. uses: github/codeql-action/init@v2
  40. # Override language selection by uncommenting this and choosing your languages
  41. with:
  42. languages: csharp
  43. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  44. # If this step fails, then you should remove it and run the build manually (see below)
  45. - name: Autobuild
  46. uses: github/codeql-action/autobuild@v2
  47. # ℹ️ Command-line programs to run using the OS shell.
  48. # 📚 https://git.io/JvXDl
  49. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  50. # and modify them (or add more) to build your code if your project
  51. # uses a compiled language
  52. #- run: |
  53. # make bootstrap
  54. # make release
  55. - name: Perform CodeQL Analysis
  56. uses: github/codeql-action/analyze@v2