|
| 1 | +name: "CodeQL Advanced" |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ "mxschmitt/test-codeql" ] |
| 6 | + pull_request: |
| 7 | + branches: [ "mxschmitt/test-codeql" ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + analyze: |
| 11 | + name: Analyze |
| 12 | + # Runner size impacts CodeQL analysis time. To learn more, please see: |
| 13 | + # - https://gh.io/recommended-hardware-resources-for-running-codeql |
| 14 | + # - https://gh.io/supported-runners-and-hardware-resources |
| 15 | + # - https://gh.io/using-larger-runners (GitHub.com only) |
| 16 | + # Consider using larger runners or machines with greater resources for possible analysis time improvements. |
| 17 | + runs-on: 'ubuntu-latest' |
| 18 | + permissions: |
| 19 | + # required for all workflows |
| 20 | + security-events: write |
| 21 | + |
| 22 | + # required to fetch internal or private CodeQL packs |
| 23 | + packages: read |
| 24 | + |
| 25 | + # only required for workflows in private repositories |
| 26 | + actions: read |
| 27 | + contents: read |
| 28 | + |
| 29 | + steps: |
| 30 | + - name: Checkout repository |
| 31 | + uses: actions/checkout@v4 |
| 32 | + |
| 33 | + # Add any setup steps before running the `github/codeql-action/init` action. |
| 34 | + # This includes steps like installing compilers or runtimes (`actions/setup-node` |
| 35 | + # or others). This is typically only required for manual builds. |
| 36 | + # - name: Setup runtime (example) |
| 37 | + # uses: actions/setup-example@v1 |
| 38 | + |
| 39 | + # Initializes the CodeQL tools for scanning. |
| 40 | + - name: Initialize CodeQL |
| 41 | + uses: github/codeql-action/init@v3 |
| 42 | + with: |
| 43 | + languages: javascript-typescript |
| 44 | + build-mode: none |
| 45 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 46 | + # By default, queries listed here will override any specified in a config file. |
| 47 | + # Prefix the list here with "+" to use these queries and those in the config file. |
| 48 | + |
| 49 | + # 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 |
| 50 | + # queries: security-extended,security-and-quality |
| 51 | + |
| 52 | + - name: Perform CodeQL Analysis |
| 53 | + uses: github/codeql-action/analyze@v3 |
| 54 | + with: |
| 55 | + category: "/language:javascript-typescript" |
0 commit comments