codeql.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. name: "CodeQL"
  3. on:
  4. schedule:
  5. - cron: '0 0 1 * *'
  6. jobs:
  7. analyze:
  8. name: Analyze
  9. runs-on: ${{ 'ubuntu-latest' }}
  10. permissions:
  11. actions: read
  12. contents: read
  13. security-events: write
  14. strategy:
  15. fail-fast: false
  16. matrix:
  17. language: [ 'python' ]
  18. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
  19. steps:
  20. - name: Checkout repository
  21. uses: actions/checkout@v3
  22. # Initializes the CodeQL tools for scanning.
  23. - name: Initialize CodeQL
  24. uses: github/codeql-action/init@v2
  25. with:
  26. languages: ${{ matrix.language }}
  27. # If you wish to specify custom queries, you can do so here or in a config file.
  28. # By default, queries listed here will override any specified in a config file.
  29. # Prefix the list here with "+" to use these queries and those in the config file.
  30. # queries: security-extended,security-and-quality
  31. - name: Perform CodeQL Analysis
  32. uses: github/codeql-action/analyze@v2
  33. with:
  34. category: "/language:${{matrix.language}}"