SecretScanning
17 commands (DELETE 2, GET 8, PATCH 4, POST 3). Write commands (POST, PUT, PATCH, DELETE) change data on GitHub, use -WhatIf to preview a request
| Command | Alias | Method | Endpoint | Synopsis |
|---|---|---|---|---|
| Get-GitHubSecretScanningAlert | Get-GHSecretScanningAlert | GET | /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} |
Get a secret scanning alert |
| Get-GitHubSecretScanningAlertsForOrg | Get-GHSecretScanningAlertsForOrg | GET | /orgs/{org}/secret-scanning/alerts |
List secret scanning alerts for an organization |
| Get-GitHubSecretScanningAlertsForRepo | Get-GHSecretScanningAlertsForRepo | GET | /repos/{owner}/{repo}/secret-scanning/alerts |
List secret scanning alerts for a repository |
| Get-GitHubSecretScanningLocationsForAlert | Get-GHSecretScanningLocationsForAlert | GET | /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations |
List locations for a secret scanning alert |
| Get-GitHubSecretScanningOrgCustomPatterns | Get-GHSecretScanningOrgCustomPatterns | GET | /orgs/{org}/secret-scanning/custom-patterns |
List organization custom patterns |
| Get-GitHubSecretScanningOrgPatternConfigs | Get-GHSecretScanningOrgPatternConfigs | GET | /orgs/{org}/secret-scanning/pattern-configurations |
List organization pattern configurations |
| Get-GitHubSecretScanningRepoCustomPatterns | Get-GHSecretScanningRepoCustomPatterns | GET | /repos/{owner}/{repo}/secret-scanning/custom-patterns |
List repository custom patterns |
| Get-GitHubSecretScanningScanHistory | Get-GHSecretScanningScanHistory | GET | /repos/{owner}/{repo}/secret-scanning/scan-history |
Get secret scanning scan history for a repository |
| New-GitHubSecretScanningBulkCreateOrgCustomPatterns | Get-GHNewSecretScanningBulkCreateOrgCustomPatterns | POST | /orgs/{org}/secret-scanning/custom-patterns |
Bulk create organization custom patterns |
| New-GitHubSecretScanningBulkCreateRepoCustomPatterns | Get-GHNewSecretScanningBulkCreateRepoCustomPatterns | POST | /repos/{owner}/{repo}/secret-scanning/custom-patterns |
Bulk create repository custom patterns |
| New-GitHubSecretScanningPushProtectionBypass | Get-GHNewSecretScanningPushProtectionBypass | POST | /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses |
Create a push protection bypass |
| Remove-GitHubSecretScanningBulkDeleteOrgCustomPatterns | Get-GHRemoveSecretScanningBulkDeleteOrgCustomPatterns | DELETE | /orgs/{org}/secret-scanning/custom-patterns |
Bulk delete organization custom patterns |
| Remove-GitHubSecretScanningBulkDeleteRepoCustomPatterns | Get-GHRemoveSecretScanningBulkDeleteRepoCustomPatterns | DELETE | /repos/{owner}/{repo}/secret-scanning/custom-patterns |
Bulk delete repository custom patterns |
| Set-GitHubSecretScanningAlert | Get-GHSetSecretScanningAlert | PATCH | /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} |
Update a secret scanning alert |
| Set-GitHubSecretScanningOrgCustomPattern | Get-GHSetSecretScanningOrgCustomPattern | PATCH | /orgs/{org}/secret-scanning/custom-patterns/{pattern_id} |
Update an organization custom pattern |
| Set-GitHubSecretScanningOrgPatternConfigs | Get-GHSetSecretScanningOrgPatternConfigs | PATCH | /orgs/{org}/secret-scanning/pattern-configurations |
Update organization pattern configurations |
| Set-GitHubSecretScanningRepoCustomPattern | Get-GHSetSecretScanningRepoCustomPattern | PATCH | /repos/{owner}/{repo}/secret-scanning/custom-patterns/{pattern_id} |
Update a repository custom pattern |
Have a look around and if you would like to contribute please read over the Contributing guide
Table of contents
- Get-GitHubSecretScanningAlert
- Get-GitHubSecretScanningAlertsForOrg
- Get-GitHubSecretScanningAlertsForRepo
- Get-GitHubSecretScanningLocationsForAlert
- Get-GitHubSecretScanningOrgCustomPatterns
- Get-GitHubSecretScanningOrgPatternConfigs
- Get-GitHubSecretScanningRepoCustomPatterns
- Get-GitHubSecretScanningScanHistory
- New-GitHubSecretScanningBulkCreateOrgCustomPatterns
- New-GitHubSecretScanningBulkCreateRepoCustomPatterns
- New-GitHubSecretScanningPushProtectionBypass
- Remove-GitHubSecretScanningBulkDeleteOrgCustomPatterns
- Remove-GitHubSecretScanningBulkDeleteRepoCustomPatterns
- Set-GitHubSecretScanningAlert
- Set-GitHubSecretScanningOrgCustomPattern
- Set-GitHubSecretScanningOrgPatternConfigs
- Set-GitHubSecretScanningRepoCustomPattern