make it very clear this is an example non-valid secret

This commit is contained in:
Drew Dennison
2026-01-15 12:56:49 -08:00
parent 1804f863e2
commit cfec7199b8
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1867,7 +1867,7 @@
"ruleId": "",
"ruleTitle": "Avoid Hardcoded Secrets",
"type": "bad",
"code": "import requests\n\nheaders = {\"Authorization\": \"token ghp_emmtytndiqky5a98w0s98w36vfhiz6f7ed4c\"}\nresponse = requests.get(\"https://api.github.com/user\", headers=headers)",
"code": "import requests\n\nheaders = {\"Authorization\": \"token ghp_emmtytndiqky5a98w0s98w36fakekey\"}\nresponse = requests.get(\"https://api.github.com/user\", headers=headers)",
"language": "python",
"description": "Python - hardcoded GitHub token"
},
+1 -1
View File
@@ -201,7 +201,7 @@ const client = stripe(process.env.STRIPE_SECRET_KEY);
```python
import requests
headers = {"Authorization": "token ghp_emmtytndiqky5a98w0s98w36vfhiz6f7ed4c"}
headers = {"Authorization": "token ghp_emmtytndiqky5a98w0s98w36fakekey"}
response = requests.get("https://api.github.com/user", headers=headers)
```
+1 -1
View File
@@ -154,7 +154,7 @@ const client = stripe(process.env.STRIPE_SECRET_KEY);
```python
import requests
headers = {"Authorization": "token ghp_emmtytndiqky5a98w0s98w36vfhiz6f7ed4c"}
headers = {"Authorization": "token ghp_emmtytndiqky5a98w0s98w36fakekey"}
response = requests.get("https://api.github.com/user", headers=headers)
```