codeql-analysis.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: CI
  2. on:
  3. # Trigger the workflow on push or pull requests, but only for the
  4. # master branch
  5. push:
  6. branches:
  7. - master
  8. - '*/ci'
  9. pull_request:
  10. branches:
  11. - master
  12. schedule:
  13. - cron: '0 0 * * 4'
  14. jobs:
  15. codeql:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - name: Checkout repository
  19. uses: actions/checkout@v2
  20. # Initializes the CodeQL tools for scanning.
  21. - name: Initialize CodeQL
  22. uses: github/codeql-action/init@v1
  23. with:
  24. languages: cpp
  25. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  26. # If this step fails, then you should remove it and run the build manually (see below)
  27. - name: Autobuild
  28. uses: github/codeql-action/autobuild@v1
  29. # ℹ️ Command-line programs to run using the OS shell.
  30. # 📚 https://git.io/JvXDl
  31. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  32. # and modify them (or add more) to build your code if your project
  33. # uses a compiled language
  34. #- run: |
  35. # make bootstrap
  36. # make release
  37. - name: Perform CodeQL Analysis
  38. uses: github/codeql-action/analyze@v1