Skip to content

Commit 9a43025

Browse files
authored
Merge pull request #12092 from github/repo-sync
repo sync
2 parents 854d0a9 + af46838 commit 9a43025

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/troubleshooting-the-codeql-workflow.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ topics:
3535

3636
To produce more detailed logging output, you can enable step debug logging. For more information, see "[Enabling debug logging](/actions/managing-workflow-runs/enabling-debug-logging#enabling-step-debug-logging)."
3737

38+
{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5601 %}
39+
40+
## Creating {% data variables.product.prodname_codeql %} debugging artifacts
41+
42+
You can obtain artifacts to help you debug {% data variables.product.prodname_codeql %} by setting a debug configuration flag. Modify the `init` step of your {% data variables.product.prodname_codeql %} workflow file and set `debug: true`.
43+
44+
```
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
debug: true
49+
```
50+
The debug artifacts will be uploaded to the workflow run as an artifact named `debug-artifacts`. The data contains the {% data variables.product.prodname_codeql %} logs, {% data variables.product.prodname_codeql %} database(s), and any SARIF file(s) produced by the workflow.
51+
52+
These artifacts will help you debug problems with {% data variables.product.prodname_codeql %} code scanning. If you contact GitHub support, they might ask for this data.
53+
54+
{% endif %}
55+
3856
## Automatic build for a compiled language fails
3957

4058
If an automatic build of code for a compiled language within your project fails, try the following troubleshooting steps.

0 commit comments

Comments
 (0)