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.
 
 
 
 
 

39 lines
1.0 KiB

  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 16 * * 2'
  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: python
  31. - name: Perform CodeQL Analysis
  32. uses: github/codeql-action/analyze@v1