codeql-analysis.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # For most projects, this workflow file will not need changing; you simply need
  2. # to commit it to your repository.
  3. #
  4. # You may wish to alter this file to override the set of languages analyzed,
  5. # or to provide custom queries or build logic.
  6. #
  7. # ******** NOTE ********
  8. # Currently can only check JS.
  9. #
  10. name: "CodeQL"
  11. on:
  12. push:
  13. branches: [ master ]
  14. pull_request:
  15. # The branches below must be a subset of the branches above
  16. branches: [ master ]
  17. schedule:
  18. - cron: '28 22 * * 5'
  19. permissions: {}
  20. jobs:
  21. analyze:
  22. name: Analyze
  23. permissions:
  24. security-events: write
  25. runs-on: ubuntu-latest
  26. strategy:
  27. fail-fast: false
  28. matrix:
  29. language: [ 'actions', 'javascript' ]
  30. # CodeQL supports [ 'actions', 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
  31. # Learn more:
  32. # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
  33. steps:
  34. - name: Checkout repository
  35. uses: actions/checkout@v7
  36. with:
  37. persist-credentials: false
  38. # Initializes the CodeQL tools for scanning.
  39. - name: Initialize CodeQL
  40. uses: github/codeql-action/init@v4
  41. with:
  42. languages: ${{ matrix.language }}
  43. # If you wish to specify custom queries, you can do so here or in a config file.
  44. # By default, queries listed here will override any specified in a config file.
  45. # Prefix the list here with "+" to use these queries and those in the config file.
  46. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  47. - name: Perform CodeQL Analysis
  48. uses: github/codeql-action/analyze@v4