Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gateixeira/ghas-org-enablement
https://github.com/gateixeira/ghas-org-enablement
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gateixeira/ghas-org-enablement
- Owner: gateixeira
- License: mit
- Created: 2023-05-08T09:30:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-07T14:26:24.000Z (over 1 year ago)
- Last Synced: 2024-06-21T19:06:31.735Z (7 months ago)
- Language: Go
- Size: 307 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GHAS Org Enablement
This tool manages GitHub Advanced Security enablement for new repositories at the organization level.
Provide the organization flag to filter and run for a single organization or omit it to run for all orgs in an enterprise.
Provide the url flag to run against GitHub Enterprise Server or omit it to run against GitHub.com.
## Usage
Run the tool via command line:
```
$ ./ghas-org-enablement --help
```### activate-ghas-features
```
$ ./ghas-org-enablement activate-ghas-features --enterprise --token --organization --url
```### deactivate-ghas-features
```
$ ./ghas-org-enablement deactivate-ghas-features --enterprise --token --organization --url
```## Results
The tool will change the following organization settings, under "Code security and analysis":
### Before activation
![Before activation](./images/before-activation.png)
### After activation
![After activation](./images/after-activation.png)
## Token scopes
the PAT token needs following scopes:
`admin:org`, `read:enterprise`
The former allows changing organization settings and the latter is used to list all organizations in the enterprise.