Checks/Aws/Test-CodebuildProjectUsesAllowedGithubOrganizations.ps1
|
function Test-CodebuildProjectUsesAllowedGithubOrganizations { <# .SYNOPSIS CodeBuild project using GitHub uses an allowed GitHub organization .DESCRIPTION **CodeBuild projects** sourcing from **GitHub/GitHub Enterprise** with a service role that trusts CodeBuild are evaluated by deriving the repository's organization from its URL and comparing it to an **allowed organizations** list. .PARAMETER Check CIEMCheck object containing check metadata. #> [CmdletBinding()] [OutputType([PSCustomObject[]])] param( [Parameter(Mandatory)] [CIEMCheck]$Check ) $ErrorActionPreference = 'Stop' # TODO: Implement check logic based on Prowler check: codebuild_project_uses_allowed_github_organizations [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check codebuild_project_uses_allowed_github_organizations for reference.', 'N/A', 'codebuild Resources') } |