microsoft / PowerShellForGitHub

Microsoft PowerShell wrapper for GitHub API
Other
582 stars 184 forks source link

Set-GitHubRepository: Add Support for 'Secret Scanning' Option #391

Closed X-Guardian closed 1 year ago

X-Guardian commented 1 year ago

Description

This PR adds the SecretScanning parameter to the Set-GitHubRepository function:

Note: The parameter was implemented using the Enabled, Disabled parameter validate set rather than a switch to mirror the pattern used by the GitHub API.

Issues Fixed

References

Checklist

X-Guardian commented 1 year ago

@HowardWolosky, this PR is ready for review.

HowardWolosky commented 1 year ago

/azp run PowerShellForGitHub-CI

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).
X-Guardian commented 1 year ago

@HowardWolosky, any timescale on when you will be able to re-review this PR?

HowardWolosky commented 1 year ago

/azp run PowerShellForGitHub-CI

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).
HowardWolosky commented 1 year ago

/azp run PowerShellForGitHub-CI

It looks like there is a consistent failure with this change on two New-GitHubRepository tests. The failures are occurring when validating the has_wiki value. I'm going to kick off a run against master to see if the failure is happening without your changes as well.

X-Guardian commented 1 year ago

/azp run PowerShellForGitHub-CI

It looks like there is a consistent failure with this change on two New-GitHubRepository tests. The failures are occurring when validating the has_wiki value. I'm going to kick off a run against master to see if the failure is happening without your changes as well.

It looks like Wikis aren't supported on private repos on the free tier anymore. I'll raise a PR to update the tests to not check for the has_wiki value in these circumstances.

Issue raised: #403

HowardWolosky commented 1 year ago

/azp run PowerShellForGitHub-CI

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).