|
| 1 | +interactions: |
| 2 | + - request: |
| 3 | + body: null |
| 4 | + headers: |
| 5 | + Accept: |
| 6 | + - '*/*' |
| 7 | + Accept-Encoding: |
| 8 | + - gzip, deflate |
| 9 | + Connection: |
| 10 | + - keep-alive |
| 11 | + User-Agent: |
| 12 | + - pygitguardian/1.20.0 (Darwin;py3.11.10) ggshield |
| 13 | + method: GET |
| 14 | + uri: https://api.gitguardian.com/v1/metadata |
| 15 | + response: |
| 16 | + body: |
| 17 | + string: |
| 18 | + '{"version":"v2.163.0","preferences":{"marketplaces__aws_product_url":"http://aws.amazon.com/marketplace/pp/prodview-mrmulzykamba6","on_premise__restrict_signup":true,"on_premise__is_email_server_configured":true,"on_premise__default_sso_config_api_id":null,"on_premise__default_sso_config_force_sso":null,"onboarding__segmentation_v1_enabled":true,"general__maximum_payload_size":26214400,"general__mutual_tls_mode":"disabled","general__signup_enabled":true},"secret_scan_preferences":{"maximum_documents_per_scan":20,"maximum_document_size":1048576},"remediation_messages":{"pre_commit":"> |
| 19 | + How to remediate\n\n Since the secret was detected before the commit was |
| 20 | + made:\n 1. replace the secret with its reference (e.g. environment variable).\n 2. |
| 21 | + commit again.\n\n> [Apply with caution] If you want to bypass ggshield (false |
| 22 | + positive or other reason), run:\n - if you use the pre-commit framework:\n\n SKIP=ggshield |
| 23 | + git commit -m \"<your message>\"\n ","pre_push":"> How to remediate\n\n Since |
| 24 | + the secret was detected before the push BUT after the commit, you need to:\n 1. |
| 25 | + rewrite the git history making sure to replace the secret with its reference |
| 26 | + (e.g. environment variable).\n 2. push again.\n\n To prevent having to rewrite |
| 27 | + git history in the future, setup ggshield as a pre-commit hook:\n https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit\n\n> |
| 28 | + [Apply with caution] If you want to bypass ggshield (false positive or other |
| 29 | + reason), run:\n - if you use the pre-commit framework:\n\n SKIP=ggshield-push |
| 30 | + git push","pre_receive":"> How to remediate\n\n A pre-receive hook set server |
| 31 | + side prevented you from pushing secrets.\n\n Since the secret was detected |
| 32 | + during the push BUT after the commit, you need to:\n 1. rewrite the git history |
| 33 | + making sure to replace the secret with its reference (e.g. environment variable).\n 2. |
| 34 | + push again.\n\n To prevent having to rewrite git history in the future, setup |
| 35 | + ggshield as a pre-commit hook:\n https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit\n\n> |
| 36 | + [Apply with caution] If you want to bypass ggshield (false positive or other |
| 37 | + reason), run:\n\n git push -o breakglass"}}' |
| 38 | + headers: |
| 39 | + access-control-expose-headers: |
| 40 | + - X-App-Version |
| 41 | + allow: |
| 42 | + - GET, HEAD, OPTIONS |
| 43 | + content-length: |
| 44 | + - '2198' |
| 45 | + content-type: |
| 46 | + - application/json |
| 47 | + cross-origin-opener-policy: |
| 48 | + - same-origin |
| 49 | + date: |
| 50 | + - Thu, 06 Mar 2025 16:36:14 GMT |
| 51 | + referrer-policy: |
| 52 | + - strict-origin-when-cross-origin |
| 53 | + server: |
| 54 | + - istio-envoy |
| 55 | + strict-transport-security: |
| 56 | + - max-age=31536000; includeSubDomains |
| 57 | + transfer-encoding: |
| 58 | + - chunked |
| 59 | + vary: |
| 60 | + - Accept-Encoding,Cookie |
| 61 | + x-app-version: |
| 62 | + - v2.163.0 |
| 63 | + x-content-type-options: |
| 64 | + - nosniff |
| 65 | + - nosniff |
| 66 | + x-envoy-upstream-service-time: |
| 67 | + - '36' |
| 68 | + x-frame-options: |
| 69 | + - DENY |
| 70 | + - SAMEORIGIN |
| 71 | + x-secrets-engine-version: |
| 72 | + - 2.133.0 |
| 73 | + x-xss-protection: |
| 74 | + - 1; mode=block |
| 75 | + status: |
| 76 | + code: 200 |
| 77 | + message: OK |
| 78 | + - request: |
| 79 | + body: |
| 80 | + '[{"filename": "commit://staged/my_\ud83d\ude0a_emoji_file.txt", "document": |
| 81 | + "@@ -1 +1 @@\n-Initial content\n\\ No newline at end of file\n+Modified content\n\\ |
| 82 | + No newline at end of file"}]' |
| 83 | + headers: |
| 84 | + Accept: |
| 85 | + - '*/*' |
| 86 | + Accept-Encoding: |
| 87 | + - gzip, deflate |
| 88 | + Connection: |
| 89 | + - keep-alive |
| 90 | + Content-Length: |
| 91 | + - '188' |
| 92 | + Content-Type: |
| 93 | + - application/json |
| 94 | + GGShield-Command-Id: |
| 95 | + - c59543a5-978d-4b24-99e0-8c748921a2ac |
| 96 | + GGShield-Command-Path: |
| 97 | + - cli secret scan pre-commit |
| 98 | + GGShield-OS-Name: |
| 99 | + - darwin |
| 100 | + GGShield-OS-Version: |
| 101 | + - 'Darwin Kernel Version 24.3.0: Thu Jan 2 20:23:36 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8112' |
| 102 | + GGShield-Python-Version: |
| 103 | + - 3.11.10 |
| 104 | + GGShield-Version: |
| 105 | + - 1.37.0 |
| 106 | + User-Agent: |
| 107 | + - pygitguardian/1.20.0 (Darwin;py3.11.10) ggshield |
| 108 | + mode: |
| 109 | + - pre_commit |
| 110 | + scan_options: |
| 111 | + - '{"show_secrets": false, "ignored_detectors_count": 0, "ignored_matches_count": |
| 112 | + 0, "ignored_paths_count": 14, "ignore_known_secrets": false, "with_incident_details": |
| 113 | + false, "has_prereceive_remediation_message": false, "all_secrets": false}' |
| 114 | + method: POST |
| 115 | + uri: https://api.gitguardian.com/v1/multiscan?all_secrets=True |
| 116 | + response: |
| 117 | + body: |
| 118 | + string: '[{"policy_break_count":0,"policies":["Secrets detection"],"policy_breaks":[],"is_diff":true}]' |
| 119 | + headers: |
| 120 | + access-control-expose-headers: |
| 121 | + - X-App-Version |
| 122 | + allow: |
| 123 | + - POST, OPTIONS |
| 124 | + content-length: |
| 125 | + - '93' |
| 126 | + content-type: |
| 127 | + - application/json |
| 128 | + cross-origin-opener-policy: |
| 129 | + - same-origin |
| 130 | + date: |
| 131 | + - Thu, 06 Mar 2025 16:36:15 GMT |
| 132 | + referrer-policy: |
| 133 | + - strict-origin-when-cross-origin |
| 134 | + server: |
| 135 | + - istio-envoy |
| 136 | + strict-transport-security: |
| 137 | + - max-age=31536000; includeSubDomains |
| 138 | + vary: |
| 139 | + - Cookie |
| 140 | + x-app-version: |
| 141 | + - v2.163.0 |
| 142 | + x-content-type-options: |
| 143 | + - nosniff |
| 144 | + - nosniff |
| 145 | + x-envoy-upstream-service-time: |
| 146 | + - '70' |
| 147 | + x-frame-options: |
| 148 | + - DENY |
| 149 | + - SAMEORIGIN |
| 150 | + x-secrets-engine-version: |
| 151 | + - 2.133.0 |
| 152 | + x-xss-protection: |
| 153 | + - 1; mode=block |
| 154 | + status: |
| 155 | + code: 200 |
| 156 | + message: OK |
| 157 | +version: 1 |
0 commit comments