gh-sarif

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 1 Imported by: 0

README

GH-SARIF

Interact with Code Scanning analysis and SARIF files.

gh-sarif is a GitHub CLI extension.

Installation

gh extension install bagtoad/gh-sarif

Usage

Usage:
  gh sarif [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  delete      Delete a GitHub Code Scanning Analysis
  help        Help about any command
  list        List GitHub Code Scanning analyses for a repository
  upload      Upload a SARIF file to GitHub Code Scanning
  view        View GitHub Code Scanning analysis or SARIF results

Flags:
  -h, --help          help for gh-sarif
  -j, --json          Output JSON instead of text (includes additional fields)
  -R, --repo string   GitHub repository (format: owner/repo)

Use "gh sarif [command] --help" for more information about a command.
List Analyses for a Repository
gh sarif list
View Analysis Results in a Table
gh sarif view <analysis-id>
View Analysis Results as SARIF
gh sarif view <analysis-id> --sarif
View Analysis Results as CSV
gh sarif view <analysis-id> --csv
View Analysis Results from a Local SARIF File
gh sarif view <path-to-sarif-file>
Upload a SARIF File to GitHub Code Scanning
gh sarif upload <commit-sha> <ref> <path-to-sarif-file>
Delete an Analysis
gh sarif delete <analysis-id>
Delete Multiple Analyses
gh sarif delete <analysis-id> <analysis-id> <analysis-id>...
Delete All Analyses in the set Except the Last
gh sarif delete <analysis-id> --delete-all
Delete All Analyses in the set, Including the Last
gh sarif delete <analysis-id> --delete-all --confirm-delete

or

gh sarif delete <analysis-id> --purge

Documentation

Overview

Copyright © 2024 Kynan Ware

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL