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.

52 lines
1.6 KiB

4 years ago
  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. with:
  24. config-file: ./.github/codeql/codeql-config.yml
  25. # Override language selection by uncommenting this and choosing your languages
  26. # with:
  27. # languages: go, javascript, csharp, python, cpp, java
  28. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  29. # If this step fails, then you should remove it and run the build manually (see below)
  30. - name: Autobuild
  31. uses: github/codeql-action/autobuild@v1
  32. # ℹ️ Command-line programs to run using the OS shell.
  33. # 📚 https://git.io/JvXDl
  34. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  35. # and modify them (or add more) to build your code if your project
  36. # uses a compiled language
  37. #- run: |
  38. # make bootstrap
  39. # make release
  40. - name: Perform CodeQL Analysis
  41. uses: github/codeql-action/analyze@v1