Skip to content

Some of the GitHub Repository Dependabot functions Do Not Accept Pipeline Input Correctly #270

Closed
@X-Guardian

Description

Issue Details

The following GitHub Repository Dependabot functions do not accept pipeline Input correctly:

  • Disable-GitHubRepositoryVulnerabilityAlert
  • Enable-GitHubRepositorySecurityFix
  • Disable-GitHubRepositorySecurityFix

Steps to reproduce the issue

$repo = New-GitHubRepository -RepositoryName ([Guid]::NewGuid().Guid)
$repo | disable-GitHubRepositoryVulnerabilityAlert 

Verbose logs showing the problem

Disable-GitHubRepositoryVulnerabilityAlert: The input object cannot be bound to any parameters for the command either
because the command does not take pipeline input or the input and its properties do not match any of the parameters that
take pipeline input.

Suggested solution to the issue

The RepositoryUrl alias is missing for the Uri parameter in these three functions.

Requested Assignment

  • If possible, I would like to fix this.

Operating System

OsName               : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture       : 64-bit
WindowsVersion       : 1903
WindowsBuildLabEx    : 18362.1.amd64fre.19h1_release.190318-1202
OsLanguage           : en-GB
OsMuiLanguages       : {en-GB, en-US}

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.0.1
PSEdition                      Core
GitCommitId                    7.0.1
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module Version

Running: 0.14.0
Installed:

Activity

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

Metadata

Assignees

No one assigned

    Labels

    api-repositoriesWork to complete the API's defined here: https://developer.github.com/v3/repos/bugThis relates to a bug in the existing module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions