You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

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