codeql-code-scanning.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: "CodeQL"
  2. on:
  3. push:
  4. branches: [ "dev" ]
  5. pull_request:
  6. # The branches below must be a subset of the branches above
  7. branches: [ "dev" ]
  8. schedule:
  9. - cron: '29 23 * * 0'
  10. workflow_dispatch:
  11. permissions:
  12. contents: read
  13. jobs:
  14. analyze:
  15. name: Analyze
  16. runs-on: ubuntu-latest
  17. permissions:
  18. actions: read
  19. contents: read
  20. security-events: write
  21. strategy:
  22. fail-fast: false
  23. matrix:
  24. language: [ 'javascript' ]
  25. steps:
  26. - name: Checkout repository
  27. uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
  28. # Initializes the CodeQL tools for scanning.
  29. - name: Initialize CodeQL
  30. uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
  31. with:
  32. languages: ${{ matrix.language }}
  33. config-file: ./.github/codeql-config.yml
  34. queries: security-and-quality
  35. - name: Autobuild
  36. uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
  37. - name: Perform CodeQL Analysis
  38. uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
  39. with:
  40. category: "/language:${{matrix.language}}"
粤ICP备19079148号