codeql.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: "CodeQL"
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. # The branches below must be a subset of the branches above
  7. branches: [ main ]
  8. # schedule:
  9. # - cron: '23 12 * * 4'
  10. jobs:
  11. analyze:
  12. name: Analyze Code
  13. runs-on: ubuntu-latest
  14. permissions:
  15. actions: read
  16. contents: read
  17. security-events: write
  18. strategy:
  19. matrix:
  20. language: [ 'javascript' ]
  21. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
  22. # Learn more:
  23. # 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
  24. steps:
  25. - name: Checkout repository and submodules
  26. uses: actions/checkout@v3
  27. with:
  28. submodules: recursive
  29. # Initializes the CodeQL tools for scanning.
  30. - name: Initialize CodeQL
  31. uses: github/codeql-action/init@v2
  32. with:
  33. languages: ${{ matrix.language }}
  34. # If you wish to specify custom queries, you can do so here or in a config file.
  35. # By default, queries listed here will override any specified in a config file.
  36. # Prefix the list here with "+" to use these queries and those in the config file.
  37. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  38. - name: Perform CodeQL Analysis
  39. uses: github/codeql-action/analyze@v2