forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecret-scan-a.json
More file actions
22 lines (22 loc) · 899 Bytes
/
Copy pathsecret-scan-a.json
File metadata and controls
22 lines (22 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "secret-scan-a",
"pair": "secret-scan",
"phase": "A",
"description": "Fix a push that's blocked by GitHub secret scanning because a PAT was committed.",
"setup": {
"repo_state": "commit containing ghp_xxxxxxxxxxxx in a Python file",
"ci_state": "push rejected with GH013 error",
"error_message": "remote: error: GH013: Secret scanning found a classic PAT in file.py:42"
},
"expected_outcome": {
"fix_steps": ["revoke token at github.com/settings/tokens", "remove secret from code", "git filter-branch or BFG to clean history", "generate new token"],
"lesson_generated": true,
"lesson_fields": ["title", "domain", "problem", "root_cause", "solution", "verification"]
},
"validation": {
"lesson_schema_valid": true,
"lesson_mentions_revoke": true,
"lesson_mentions_redaction": true
},
"teaches": "Secret scanning response pattern"
}