Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hexium310/gh-vulns
A gh extension to display all vulnerabilities in your own repositories.
https://github.com/hexium310/gh-vulns
gh-extension
Last synced: 24 days ago
JSON representation
A gh extension to display all vulnerabilities in your own repositories.
- Host: GitHub
- URL: https://github.com/hexium310/gh-vulns
- Owner: hexium310
- License: mit
- Created: 2021-06-04T09:36:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T15:08:00.000Z (about 3 years ago)
- Last Synced: 2024-08-17T08:05:14.886Z (3 months ago)
- Topics: gh-extension
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-vulns
This displays all vulnerabilities in your own repositories.
![image](https://user-images.githubusercontent.com/10758173/120782092-9f99f280-c564-11eb-9443-90d8f2851adb.png)
## Requirements
- [gh](https://github.com/cli/cli)
- [jq](https://github.com/stedolan/jq)
- [Zsh](https://zsh.sourceforge.io/)## Installation
### gh v2 or later
This subcommand can be installed with `gh extension`. See [gh extension](https://cli.github.com/manual/gh_extension).
```zsh
gh extension install hexium310/gh-vulns
```### gh v1
With zinit:
```zsh
zinit ice lucid as'program'
zinit light hexium310/gh-vulns
```Or install this repository on your `$PATH`.
## Usage
You can pass a GitHub username that have repositories you want to get vulnerabilities or set it to `$GH_VULNS_USERNAME`.
When a username isn't passed and `$GH_VULNS_USERNAME` isn't set, the one got using GitHub API is used.```
gh vulns hexium310# Using $GH_VULNS_USERNAME or GitHub API
gh vulns
```Besides, you can create a alias for `gh` if you use gh v1.
```
gh alias set --shell vulns 'gh-vulns $@'
```