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
Add enterprise-wide code scanning alerts for Enterprise Server and GHAE (#3)
* start work on ghes/ghae support
* add csv files to gitignore
* add enterprise report function
* add enterprise-scope code scanning reporting
* update readme
* add dependency review check
* mess with line length in linter
* mess with linter
* still messing with linter
| Dependabot | :x: | :x: | :x: | Waiting on [this API](https://github.com/github/roadmap/issues/495) to :ship: |
57
53
58
54
:information_source: All of this reporting requires either public repositories or a GitHub Advanced Security license.
59
55
60
-
:information_source: Any item with a :curly_loop: needs some looping logic, since repositories are supported and not higher-level ownership (like orgs or enterprises). How this looks won't differ much between GHAE or GHES. In both cases, you'll need an enterprise admin PAT to access the `all_organizations.csv` or `all_repositories.csv` report from `stafftools/reports`, then looping over it in the appropriate scope. That will tell you about the existence of everything, but not give you permission to access it. To do that, you'll need to use `ghe-org-admin-promote` in GHES ([link](https://docs.github.com/en/enterprise-server@3.4/admin/configuration/configuring-your-enterprise/command-line-utilities#ghe-org-admin-promote))
56
+
:information_source: Any item with a :curly_loop: needs some looping logic, since repositories are supported and not higher-level ownership (like orgs or enterprises). How this looks won't differ much between GHAE or GHES. In both cases, you'll need an enterprise admin PAT to access the `all_organizations.csv` or `all_repositories.csv` report from `stafftools/reports`, then looping over it in the appropriate scope. That will tell you about the existence of everything, but not give you permission to access it. To do that, you'll need to use `ghe-org-admin-promote` in GHES ([link](https://docs.github.com/en/enterprise-server@latest/admin/configuration/configuring-your-enterprise/command-line-utilities#ghe-org-admin-promote)) to own all organizations within the server.
61
57
62
58
## Using this with Flat Data
63
59
@@ -79,7 +75,7 @@ jobs:
79
75
- name: Check out repo
80
76
uses: actions/checkout@v3
81
77
- name: CSV export
82
-
uses: some-natalie/ghas-to-csv@v0.2.0
78
+
uses: some-natalie/ghas-to-csv@v0.3.0
83
79
env:
84
80
GITHUB_PAT: ${{ secrets.PAT }} # needed if not running against the current repository
85
81
SCOPE_NAME: "OWNER-NAME/REPO-NAME" # repository name, needed only if not running against the current repository
@@ -121,6 +117,10 @@ jobs:
121
117
nginx-pid/
122
118
```
123
119
124
-
## Notes
120
+
## But it doesn't do THIS THING
121
+
122
+
The API docs are [here](https://docs.github.com/en/enterprise-cloud@latest) and pull requests are welcome! :heart:
123
+
124
+
## Other notes
125
125
126
126
[GitHub Copilot](https://copilot.github.com/) wrote most of the Python code in this project. I mostly just structured the files/functions, wrote some docstrings, accounted for the differences in API versions across the products, and edited what it gave me. :heart:
0 commit comments