Skip to content

Commit 855b09f

Browse files
committed
2 parents 20a888b + 2d3adac commit 855b09f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ This is a set of scripts that use these APIs to access and manage alerts. The sc
1111
## Requirements
1212

1313
- Python 3.10 or higher
14-
- Install dependencies with `python3 -mpip install -r requirements.txt`
14+
- Install dependencies with `python3 -mpip install -r requirements.txt --user`
15+
- Consider using a virtualenv, managed by `pyenv`
16+
- On MacOS, add `--break-system-packages` to the end of the install command, if you are not using a virtualenv: `python3 -mpip install -r requirements.txt --user --break-system-packages`
1517
- Put a suitable GitHub token in your environment in `GITHUB_TOKEN`
18+
- for example with `GITHUB_TOKEN=$(gh auth token)` before the command
1619
- requires read access to GitHub Advanced Security alerts
1720
- requires read access to the repository, organization or Enterprise you are querying
1821
- Note that Secret Scanning alerts are only available to admins of the repository, organization or Enterprise, a security manager, or where explicitly enabled by the repository owner

resolve_duplicate_secret_scanning_alerts.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,8 @@ def main() -> None:
195195
# index results by secret and type for easy lookup
196196
indexed_results = index_results_by_secret(results)
197197

198-
LOG.debug(indexed_results)
199-
200198
resolve_duplicates(indexed_results, matching_secrets_lookup, hostname)
201199

202200

203201
if __name__ == "__main__":
204-
main()
202+
main()

0 commit comments

Comments
 (0)