From 40022abd673bbce688905a6dfd3afc3ab15f2ce6 Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:52:56 +0200 Subject: [PATCH] Set languages --- docs/content/en/integrations/ldap-authentication.md | 4 ++-- docs/content/en/integrations/parsers/file/fortify.md | 2 +- docs/content/en/integrations/parsers/file/veracode.md | 4 ++-- docs/content/en/integrations/social-authentication.md | 4 ++-- docs/content/en/usage/productgrading.md | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/content/en/integrations/ldap-authentication.md b/docs/content/en/integrations/ldap-authentication.md index 2fcf895e12b..17697043736 100644 --- a/docs/content/en/integrations/ldap-authentication.md +++ b/docs/content/en/integrations/ldap-authentication.md @@ -41,7 +41,7 @@ Please check for the latest version of these requirements at the time of impleme Otherwise add the following to requirements.txt: -``` +```python python-ldap==3.4.2 django-auth-ldap==4.1.0 ``` @@ -119,7 +119,7 @@ Read the docs for Django Authentication with LDAP here: https://django-auth-ldap In order to pass the variables to the settings.dist.py file via docker, it's a good idea to add these to the docker-compose file. You can do this by adding the following variables to the environment section for the uwsgi image: -``` +```yaml DD_LDAP_SERVER_URI: "${DD_LDAP_SERVER_URI:-ldap://ldap.example.com}" DD_LDAP_BIND_DN: "${DD_LDAP_BIND_DN:-}" DD_LDAP_BIND_PASSWORD: "${DD_LDAP_BIND_PASSWORD:-}" diff --git a/docs/content/en/integrations/parsers/file/fortify.md b/docs/content/en/integrations/parsers/file/fortify.md index 5c113c36cb8..2897e39d7c2 100644 --- a/docs/content/en/integrations/parsers/file/fortify.md +++ b/docs/content/en/integrations/parsers/file/fortify.md @@ -20,6 +20,6 @@ per category. To get all issues, copy the [DefaultReportDefinitionAllIssues.xml] Once this is complete, you can run the following command on your .fpr file to generate the required XML: -``` +```bash ./path/to/ReportGenerator -format xml -f /path/to/output.xml -source /path/to/downloaded/artifact.fpr -template DefaultReportDefinitionAllIssues.xml ``` \ No newline at end of file diff --git a/docs/content/en/integrations/parsers/file/veracode.md b/docs/content/en/integrations/parsers/file/veracode.md index 77237860413..431a7f54cad 100644 --- a/docs/content/en/integrations/parsers/file/veracode.md +++ b/docs/content/en/integrations/parsers/file/veracode.md @@ -14,7 +14,7 @@ Veracode reports can be ingested in either XML or JSON Format - Requires slight modification of the response returned from the API - Exmample of a request being: `url | jq "{findings}"` - Desired Format: - ``` + ```json { "findings": [ { @@ -28,7 +28,7 @@ Veracode reports can be ingested in either XML or JSON Format - This response can be saved directly to a file and uploaded - Not as ideal for crafting a refined report consisting of multiple requests - Desired Format: - ``` + ```json { "_embedded": { "findings": [ diff --git a/docs/content/en/integrations/social-authentication.md b/docs/content/en/integrations/social-authentication.md index a7cafe38067..ebf2a6b0c84 100644 --- a/docs/content/en/integrations/social-authentication.md +++ b/docs/content/en/integrations/social-authentication.md @@ -312,7 +312,7 @@ Edit the settings (see [Configuration]({{< ref "/getting_started/configuration" or, alternatively, for helm configuration, add this to the `extraConfig` section: -``` +```yaml DD_SESSION_COOKIE_SECURE: 'True' DD_CSRF_COOKIE_SECURE: 'True' DD_SECURE_SSL_REDIRECT: 'True' @@ -453,7 +453,7 @@ Some Identity Providers are able to send list of groups to which should user bel You can bypass the login form if you are only using SSO/Social authentication for login in by enabling these two environment variables: -``` +```yaml DD_SOCIAL_LOGIN_AUTO_REDIRECT: "true" DD_SOCIAL_AUTH_SHOW_LOGIN_FORM: "false" ``` diff --git a/docs/content/en/usage/productgrading.md b/docs/content/en/usage/productgrading.md index 88cb88267fa..3ead06d24f4 100644 --- a/docs/content/en/usage/productgrading.md +++ b/docs/content/en/usage/productgrading.md @@ -27,7 +27,7 @@ Note that the following abbreviations were used: - med: amount of medium findings within the product - low: amount of low findings within the product -``` +```python health=100 if crit > 0: health = 40