codeql-analysis.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 5 * * 1'
  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. # If this run was triggered by a pull request event, then checkout
  22. # the head of the pull request instead of the merge commit.
  23. - run: git checkout HEAD^2
  24. if: ${{ github.event_name == 'pull_request' }}
  25. # Initializes the CodeQL tools for scanning.
  26. - name: Initialize CodeQL
  27. uses: github/codeql-action/init@v1
  28. # Override language selection by uncommenting this and choosing your languages
  29. # with:
  30. # languages: go, javascript, csharp, python, cpp, java
  31. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  32. # If this step fails, then you should remove it and run the build manually (see below)
  33. - name: Autobuild
  34. uses: github/codeql-action/autobuild@v1
  35. # ℹ️ Command-line programs to run using the OS shell.
  36. # 📚 https://git.io/JvXDl
  37. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  38. # and modify them (or add more) to build your code if your project
  39. # uses a compiled language
  40. #- run: |
  41. # make bootstrap
  42. # make release
  43. - name: Perform CodeQL Analysis
  44. uses: github/codeql-action/analyze@v1