#github #security #github-api #ghas

ghastoolkit

GitHub Advanced Security Toolkit in Rust

13 releases (5 breaking)

0.5.1 Aug 2, 2024
0.5.0 Aug 2, 2024
0.4.3 Jun 27, 2024
0.3.1 Jun 13, 2024
0.0.0 Feb 27, 2024

#1745 in Development tools

Download history 257/week @ 2024-06-26 45/week @ 2024-07-03 1/week @ 2024-07-24 210/week @ 2024-07-31 9/week @ 2024-08-07 1/week @ 2024-08-14 35/week @ 2024-09-11 14/week @ 2024-09-18 52/week @ 2024-09-25 21/week @ 2024-10-02

89 downloads per month
Used in ghastoolkit-cli

MIT license

120KB
2.5K SLoC

GitHub Advanced Security (GHAS) Toolkit is a library for interacting with various GitHub's API and features. The main goal of this library is to provide a simple and easy to use interface with these features.

Features

There are a few features that are currently supported by this library:

  • CodeQL
    • CodeQL CLI
    • CodeQL Database(s)
  • GitHub Advanced Security APIs
    • Code Scanning
    • Secret Scanning

Usage

use ghastoolkit::{GitHub, Repository};

#[tokio::main]
async fn main() {
    // Initialize GitHub using default environment variables or github.com
    let github = GitHub::default();
    println!("GitHub :: {}", github);

    let repository = Repository::parse("geekmasher/ghastoolkit-rs@main")
        .expect("Failed to create Repository");
    println!("Repository :: {}", repository);
}

Dependencies

~22–35MB
~622K SLoC