1
0
mirror of synced 2025-12-20 02:19:14 -05:00
Files
docs/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/troubleshooting-your-default-setup-for-codeql.md
2023-05-09 14:36:45 +00:00

3.1 KiB

title, shortTitle, intro, product, versions, type, topics
title shortTitle intro product versions type topics
Troubleshooting your default setup for CodeQL Troubleshoot default setup If you're having problems with the default {% data variables.product.prodname_code_scanning %} setup, you can troubleshoot by using these tips for resolving issues. {% data reusables.gated-features.code-scanning %}
feature
code-scanning-without-workflow
how_to
Advanced Security
Code scanning
CodeQL
Actions
Troubleshooting

A pre-existing {% data variables.product.prodname_codeql %} workflow is disabled

If you see two workflows named {% data variables.product.prodname_codeql %}, one workflow may be a pre-existing {% data variables.product.prodname_codeql %} workflow file which has been disabled by default setup. Default setup overrides existing {% data variables.product.prodname_codeql %} setups by disabling any existing {% data variables.product.prodname_codeql %} workflows, and blocking any {% data variables.product.prodname_codeql %} analysis API uploads. This behavior stops you using {% data variables.product.prodname_actions %} minutes to run workflows for {% data variables.product.prodname_codeql %} advanced setup when only the results from default setup will be used. For more information about switching between advanced and default setups, see "AUTOTITLE."

Optionally, if you are certain you no longer need the pre-existing workflow file, you can delete the file from your repository. For more information, see "AUTOTITLE."

{% data reusables.code-scanning.troubleshooting-multiple-configurations %}

Enabling the default setup takes too long

If enabling your default setup is taking too long, try canceling the workflow run and restarting the setup. To restart your setup, navigate to the main page of your repository, then click {% octicon "play" aria-hidden="true" %} Actions. Click the {% data variables.product.prodname_codeql %} workflow run that's in progress, then click Cancel workflow. Once {% octicon "stop" aria-label="The stop icon" %} appears beside the workflow run name, navigate back to the Code security and analysis settings and re-enable the default setup. If the default setup continues to stall, please contact {% data variables.contact.contact_support %} or try enabling the advanced setup. For more information, see "AUTOTITLE."

Unclear what triggered a workflow run

If you don't know what triggered an analysis, look at the log for the last scan. For more information on viewing your last scan's log, see "AUTOTITLE."