codeql-analysis.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: "CodeQL"
  2. on:
  3. push:
  4. branches: [master, ]
  5. pull_request:
  6. # The branches below must be a subset of the branches above
  7. branches: [master]
  8. schedule:
  9. - cron: '0 6 * * 5'
  10. jobs:
  11. analyse:
  12. name: Analyse
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Checkout repository
  16. uses: actions/checkout@v2
  17. with:
  18. # We must fetch at least the immediate parents so that if this is
  19. # a pull request then we can checkout the head.
  20. fetch-depth: 2
  21. # Initializes the CodeQL tools for scanning.
  22. - name: Initialize CodeQL
  23. uses: github/codeql-action/init@v1
  24. # Override language selection by uncommenting this and choosing your languages
  25. # with:
  26. # languages: go, javascript, csharp, python, cpp, java
  27. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  28. # If this step fails, then you should remove it and run the build manually (see below)
  29. - name: Autobuild
  30. uses: github/codeql-action/autobuild@v1
  31. # ℹ️ Command-line programs to run using the OS shell.
  32. # 📚 https://git.io/JvXDl
  33. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  34. # and modify them (or add more) to build your code if your project
  35. # uses a compiled language
  36. #- run: |
  37. # make bootstrap
  38. # make release
  39. - name: Perform CodeQL Analysis
  40. uses: github/codeql-action/analyze@v1