codeql.yml (1769B)
1 name: "CodeQL" 2 3 on: 4 push: 5 branches: [ "main" ] 6 pull_request: 7 # The branches below must be a subset of the branches above 8 branches: [ "main" ] 9 schedule: 10 - cron: '18 19 * * 1' 11 12 jobs: 13 analyze: 14 name: Analyze 15 runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} 16 timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} 17 permissions: 18 actions: read 19 contents: read 20 security-events: write 21 22 strategy: 23 fail-fast: false 24 matrix: 25 language: [ 'javascript' ] 26 27 steps: 28 - name: Checkout repository 29 uses: actions/checkout@v4 30 31 # Initializes the CodeQL tools for scanning. 32 - name: Initialize CodeQL 33 uses: github/codeql-action/init@v2 34 with: 35 languages: ${{ matrix.language }} 36 # If you wish to specify custom queries, you can do so here or in a config file. 37 # By default, queries listed here will override any specified in a config file. 38 # Prefix the list here with "+" to use these queries and those in the config file. 39 40 # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs 41 # queries: security-extended,security-and-quality 42 43 44 # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). 45 # If this step fails, then you should remove it and run the build manually (see below) 46 - name: Autobuild 47 uses: github/codeql-action/autobuild@v2 48 49 - name: Perform CodeQL Analysis 50 uses: github/codeql-action/analyze@v2 51 with: 52 category: "/language:${{matrix.language}}"