Skip to content

Commit 6d89556

Browse files
committed
secrets tracking
1 parent e71d9cf commit 6d89556

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.secrets.baseline

3.71 KB
Binary file not shown.

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
How to get started with the project locally:
1+
# getting_started:
22

33
1) Create a virtual environment and install dependencies:
44

@@ -12,4 +12,20 @@ pip install -r requirements/requirements-dev.txt
1212

1313
```bash
1414
python -m unittest
15+
```
16+
17+
# detect_secrets
18+
implement to ensure no secrets are commited locally:
19+
20+
setup a baseline where all tracked files will be compared to:
21+
```bash
22+
detect-secrets scan > .secrets.baseline
23+
```
24+
25+
compare all tracked files to baseline the ```results``` key should be ```{}``` if no secrets are present
26+
```bash
27+
detect-secrets scan
28+
```
29+
```powershell
30+
(detect-secrets scan | ConvertFrom-Json).results
1531
```

requirements/requirements-dev.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
-r requirements-prod.txt
1+
cfn-lint
2+
detect-secrets==1.0.3
3+
-r requirements-prod.txt

0 commit comments

Comments
 (0)