Skip to content

Commit 37eb6c5

Browse files
Merge branch 'main' into main
2 parents 74fe85d + 7e0d80b commit 37eb6c5

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

content/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,22 @@ If you added manual build steps for compiled languages and {% data variables.pro
267267

268268
When you enable default setup for a repository that contains C/C++ code, the build mode is set to `none` automatically.
269269

270-
>[!NOTE] Support of build mode `none` for C/C++ codebases is currently in {% data variables.release-phases.public_preview %} and subject to change.
270+
### No build for C/C++
271+
272+
{% data variables.product.prodname_codeql %} will infer C/C++ compilation units through source file extensions. For each source file found, compilation flags and include paths are inferred by inspecting the codebase without the need for a working build command.
273+
274+
#### Accuracy of no build analysis for C/C++
275+
276+
Creating a {% data variables.product.prodname_codeql %} C/C++ database without a build may produce less accurate results than using `autobuild` or manual build steps in some cases; for example, if:
277+
278+
* The code depends heavily on custom macros/defines not available in existing headers
279+
* The codebase has many external dependencies
280+
281+
You can ensure a more accurate analysis by taking the following steps:
282+
283+
* Place custom macros and defines in header files that are included in relevant source files
284+
* Ensure external dependencies (headers) are available in system include directories or in the workspace
285+
* Run the extraction on the target platform. For example, choose a Windows runner to analyze Windows projects to give access to platform specific headers and compilers
271286

272287
{% endif %}
273288

content/site-policy/privacy-policies/github-cookies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ GitHub | `saml_csrf_token_legacy` | This cookie is set by SAML auth path method
4646
GitHub | `saml_return_to` | This cookie is set by the SAML auth path method to maintain state during the SAML authentication loop. | Until user closes browser or completes authentication request
4747
GitHub | `saml_return_to_legacy` | This cookie is set by the SAML auth path method to maintain state during the SAML authentication loop. | Until user closes browser or completes authentication request
4848
GitHub | `show_cookie_banner` | Set based on the client’s region and used to determine if a cookie consent banner should be shown | Session
49+
GitHub | `social_csrf_token` | This cookie is set by the social initiate path to ensure that the user that started the flow is the same user that completes it. | 5 minutes
4950
GitHub | `tz` | This cookie allows us to customize timestamps to your time zone. | Session
5051
GitHub | `user_session` | This cookie is used to log you in. | Two weeks
5152
[Microsoft](https://privacy.microsoft.com/en-us/privacystatement) | `ai_session` | Application Insights session ID | One year
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Reference: #16543 (C/C++ public preview)
1+
# Reference: #19520 (C/C++ GA)
22

33
versions:
44
fpt: '*'
55
ghec: '*'
6+
ghes: '>= 3.20'

0 commit comments

Comments
 (0)