Skip to content

Support Code Scanning APIs#310

Description

@GeekMasher

馃挕 Feature description

Supporting the GitHub Code Scanning API would allow us to automatically pull security alerts from GitHub and perform actions on those results.

https://docs.github.com/en/enterprise-cloud@latest/rest/code-scanning#list-code-scanning-alerts-for-a-repository

馃捇 Basic example

let owner = "softprops";
let repo = "hubcaps";

let alerts: Vec<CodeScanningAlerts> = github.repo(owner, repo).code_scanning().alerts().await?;

for alert in alerts {
    println!(" >> Alert('{:#?}')", alert.rule.name);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions