Skip to content

Commit 56e22d6

Browse files
authored
Update compiled-languages-csharp.md
1 parent 6466f17 commit 56e22d6

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

troubleshooting/codeql-builds/compiled-languages-csharp.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,21 @@ With .NET we can employ a few mechanisms to remove code from CodeQL scans (e.g.
216216
- Build in release mode - exclude test projects from that [build configuration](https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2015/ide/how-to-create-and-edit-configurations?view=vs-2015&redirectedfrom=MSDN#to-modify-a-solution-wide-build-configuration)
217217

218218
## Optimizations - CodeQL Engine
219-
- CodeQL will (by default) pull in source code from your dependencies using CIL extraction to assist in mapping out your data flows. While this can improve the precision of the results, this can also lead to a large increase in database size. You might consider disabling this feature for a quick scan but running a cron based scan with the option enabled.
220-
```yml
221-
env:
222-
CODEQL_EXTRACTOR_CSHARP_OPTION_CIL: false
223-
```
219+
- CodeQL will (by default) pull in source code from your dependencies using CIL extraction to assist in mapping out your data flows. While this can improve the precision of the results, this can also lead to a large increase in database size. You might consider disabling this feature for a quick scan but running a cron based scan with the option enabled.
220+
221+
### GitHub Actions
222+
```yml
223+
env:
224+
CODEQL_EXTRACTOR_CSHARP_OPTION_CIL: false
225+
```
226+
### Azure DevOps Pipelines
227+
```yml
228+
variables:
229+
# Disable CodeQL CSharp CIL mode
230+
CODEQL_EXTRACTOR_CSHARP_OPTION_CIL: $(cil-extraction)
231+
```
232+
233+
224234
225235
## Optimizations - CodeQL Queries
226236
- Tweak your current codeql yml workflow in a few ways:

0 commit comments

Comments
 (0)