You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,29 @@
1
-
# GHAS API scripts
1
+
# GitHub Advanced Security (GHAS) API scripts
2
+
3
+
GitHub Advanced Security offers a range of rich REST APIs to access and manage alerts.
4
+
5
+
This is a set of scripts that use these APIs to access and manage alerts. The scripts are written in Python and use a wrapper around the API requests to manage authentication, pagination and rate limiting.
6
+
7
+
> [!WARNING]
8
+
> These scripts are not supported by GitHub. They are provided as-is, and come with no support or commitments.
9
+
> They are intended to be used as examples, and can be modified to suit your needs
2
10
3
11
## Requirements
4
12
5
13
- Python 3.10 or higher
6
14
- Install dependencies with `python3 -mpip install -r requirements.txt`
7
-
- Put a GitHub token in your environment in `GITHUB_TOKEN`
15
+
- Put a suitable GitHub token in your environment in `GITHUB_TOKEN`
16
+
- requires read access to GitHub Advanced Security alerts
17
+
- requires read access to the repository, organization or Enterprise you are querying
18
+
- 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
8
19
9
20
## Usage
10
21
11
-
The date in `--since` can be specified as `YYYY-MM-DD` or as `Nd` where `N` is the number of days ago. Full ISO formats are also supported. If a timezone is not specified, the date is assumed to be in UTC (`Z` timezone).
22
+
Generally, the date in `--since` can be specified as `YYYY-MM-DD` or as `Nd` where `N` is the number of days ago. Full ISO formats are also supported. If a timezone is not specified, the date is assumed to be in UTC (`Z` timezone).
23
+
24
+
Run each specific script according to the help for each script.
0 commit comments