1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/data/reusables/code-scanning/max-paths-setting.md
2025-01-06 07:47:10 +00:00

772 B

  • {% data variables.product.prodname_codeql %} advanced setup for {% data variables.product.prodname_code_scanning %}: update the analyze step to limit the number of paths to a maximum of one or zero.

    - name: Perform CodeQL Analysis
      uses: {% data reusables.actions.action-codeql-action-analyze %}
      env: 
        CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"interpret-results":["--max-paths", 1]}}'
    
  • {% data variables.product.prodname_codeql_cli %} database analyze: update the database analysis command to include the --max-paths=1 flag. For more information, see AUTOTITLE.

Note

The max-paths setting affects the results of all dataflow queries.