codeql-analysis.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. contents: read
  21. security-events: write
  22. jobs:
  23. analyze:
  24. name: Analyze
  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@v6
  36. # Initializes the CodeQL tools for scanning.
  37. - name: Initialize CodeQL
  38. uses: github/codeql-action/init@v4
  39. with:
  40. languages: ${{ matrix.language }}
  41. # If you wish to specify custom queries, you can do so here or in a config file.
  42. # By default, queries listed here will override any specified in a config file.
  43. # Prefix the list here with "+" to use these queries and those in the config file.
  44. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  45. - name: Perform CodeQL Analysis
  46. uses: github/codeql-action/analyze@v4