Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apicurio/apicurio-cve-cli


https://github.com/apicurio/apicurio-cve-cli

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Apicurio CVE Helper

CLI tooling that helps with managing JIRA CVE reports

**WARNING:** Project is still WORK IN PROGRESS and currently supports only Apicurio Team CVEs.

# Build

You can build project using this command:
```
$ go build
```

To install cli to your path use:
```
$ go install
```

# Usage

```
[msafar@redhat]$ apicurio-cve-helper

Apicurio CVE helper - a simple CLI to manage CVE reports

Usage:
apicurio-cve-helper [command]

Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
issues Manage Jira issues

Flags:
-h, --help help for apicurio-cve-helper
-v, --version version for apicurio-cve-helper

Use "apicurio-cve-helper [command] --help" for more information about a command.
```

## Configuration

Configuration file config.yml can be located at `./config.yml` or at `~/.config/apicurio-cve-helper/config.yml`

Example config.yml
```yaml
jira_token: sdauyv4234234fs1dg46go8mnazljy4
project_name: MGDSR
```

## Jira Authentication Token

To use Apicurio CVE helper you need to configure your jira token. You can do it using env variable `JIRA_TOKEN` or in the config.yml.

```
$ export JIRA_TOKEN=
```

## Get all opened CVEs

```
$ apicurio-cve-helper issues get --sbom
```

## Formatting

Tool supports tree types of output: `json`, `html` and default `text`. You can use `json` format using `--json` flag and `html` using `--html` flag:

```
$ apicurio-cve-helper issues get --sbom --json
```
```
$ apicurio-cve-helper issues get --sbom --html
```