codeql.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: "CodeQL"
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - "!dependabot/**"
  7. pull_request:
  8. # The branches below must be a subset of the branches above
  9. branches:
  10. - master
  11. - "!dependabot/**"
  12. schedule:
  13. - cron: "0 0 * * 0"
  14. workflow_dispatch:
  15. env:
  16. FORCE_COLOR: 2
  17. jobs:
  18. analyze:
  19. name: Analyze
  20. runs-on: ubuntu-latest
  21. permissions:
  22. security-events: write
  23. steps:
  24. - name: Checkout repository
  25. uses: actions/checkout@v4
  26. with:
  27. persist-credentials: false
  28. # Initializes the CodeQL tools for scanning.
  29. - name: Initialize CodeQL
  30. uses: github/codeql-action/init@v3
  31. with:
  32. languages: "javascript"
  33. config-file: ./.github/codeql/codeql-config.yml
  34. queries: +security-and-quality
  35. - name: Autobuild
  36. uses: github/codeql-action/autobuild@v3
  37. - name: Perform CodeQL Analysis
  38. uses: github/codeql-action/analyze@v3
  39. with:
  40. category: "/language:javascript"