codeql-analysis.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: "Code Scanning - Action"
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches: [main]
  7. schedule:
  8. # ┌───────────── minute (0 - 59)
  9. # │ ┌───────────── hour (0 - 23)
  10. # │ │ ┌───────────── day of the month (1 - 31)
  11. # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
  12. # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
  13. # │ │ │ │ │
  14. # │ │ │ │ │
  15. # │ │ │ │ │
  16. # * * * * *
  17. - cron: '0 0 * * 6'
  18. jobs:
  19. CodeQL-Build:
  20. # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
  21. runs-on: ubuntu-latest
  22. permissions:
  23. # required for all workflows
  24. security-events: write
  25. # only required for workflows in private repositories
  26. actions: read
  27. contents: read
  28. steps:
  29. - name: Checkout repository
  30. uses: actions/checkout@v2
  31. # Initializes the CodeQL tools for scanning.
  32. - name: Initialize CodeQL
  33. uses: github/codeql-action/init@v1
  34. # Override language selection by uncommenting this and choosing your languages
  35. # with:
  36. # languages: go, javascript, csharp, python, cpp, java
  37. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  38. # If this step fails, then you should remove it and run the build manually (see below).
  39. - name: Autobuild
  40. uses: github/codeql-action/autobuild@v1
  41. # ℹ️ Command-line programs to run using the OS shell.
  42. # 📚 https://git.io/JvXDl
  43. # ✏️ If the Autobuild fails above, remove it and uncomment the following
  44. # three lines and modify them (or add more) to build your code if your
  45. # project uses a compiled language
  46. #- run: |
  47. # make bootstrap
  48. # make release
  49. - name: Perform CodeQL Analysis
  50. uses: github/codeql-action/analyze@v1