Struct roctogen::endpoints::secret_scanning::SecretScanning [−][src]
pub struct SecretScanning<'api> { /* fields omitted */ }
Implementations
impl<'api> SecretScanning<'api>
[src]
impl<'api> SecretScanning<'api>
[src]pub async fn get_alert_async(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber
) -> Result<SecretScanningAlert, SecretScanningGetAlertError>
[src]
pub async fn get_alert_async(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber
) -> Result<SecretScanningAlert, SecretScanningGetAlertError>
[src]Get a secret scanning alert
Gets a single secret scanning alert detected in a private repository. To use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo
scope or security_events
scope.
GitHub Apps must have the secret_scanning_alerts
read permission to use this endpoint.
pub fn get_alert(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber
) -> Result<SecretScanningAlert, SecretScanningGetAlertError>
[src]
pub fn get_alert(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber
) -> Result<SecretScanningAlert, SecretScanningGetAlertError>
[src]Get a secret scanning alert
Gets a single secret scanning alert detected in a private repository. To use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo
scope or security_events
scope.
GitHub Apps must have the secret_scanning_alerts
read permission to use this endpoint.
pub async fn list_alerts_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<SecretScanningListAlertsForRepoParams<'api>>>
) -> Result<Vec<SecretScanningAlert>, SecretScanningListAlertsForRepoError>
[src]
pub async fn list_alerts_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<SecretScanningListAlertsForRepoParams<'api>>>
) -> Result<Vec<SecretScanningAlert>, SecretScanningListAlertsForRepoError>
[src]List secret scanning alerts for a repository
Lists all secret scanning alerts for a private repository, from newest to oldest. To use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo
scope or security_events
scope.
GitHub Apps must have the secret_scanning_alerts
read permission to use this endpoint.
GitHub API docs for list_alerts_for_repo
pub fn list_alerts_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<SecretScanningListAlertsForRepoParams<'api>>>
) -> Result<Vec<SecretScanningAlert>, SecretScanningListAlertsForRepoError>
[src]
pub fn list_alerts_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<SecretScanningListAlertsForRepoParams<'api>>>
) -> Result<Vec<SecretScanningAlert>, SecretScanningListAlertsForRepoError>
[src]List secret scanning alerts for a repository
Lists all secret scanning alerts for a private repository, from newest to oldest. To use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo
scope or security_events
scope.
GitHub Apps must have the secret_scanning_alerts
read permission to use this endpoint.
GitHub API docs for list_alerts_for_repo
pub async fn update_alert_async(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber,
body: PatchSecretScanningUpdateAlert
) -> Result<SecretScanningAlert, SecretScanningUpdateAlertError>
[src]
pub async fn update_alert_async(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber,
body: PatchSecretScanningUpdateAlert
) -> Result<SecretScanningAlert, SecretScanningUpdateAlertError>
[src]Update a secret scanning alert
Updates the status of a secret scanning alert in a private repository. To use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo
scope or security_events
scope.
GitHub Apps must have the secret_scanning_alerts
write permission to use this endpoint.
GitHub API docs for update_alert
pub fn update_alert(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber,
body: PatchSecretScanningUpdateAlert
) -> Result<SecretScanningAlert, SecretScanningUpdateAlertError>
[src]
pub fn update_alert(
&self,
owner: &str,
repo: &str,
alert_number: AlertNumber,
body: PatchSecretScanningUpdateAlert
) -> Result<SecretScanningAlert, SecretScanningUpdateAlertError>
[src]Update a secret scanning alert
Updates the status of a secret scanning alert in a private repository. To use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo
scope or security_events
scope.
GitHub Apps must have the secret_scanning_alerts
write permission to use this endpoint.
GitHub API docs for update_alert