From e6f9a3090f1ef2822e1c772fce4f32d42ef7df7d Mon Sep 17 00:00:00 2001 From: Rob Bos Date: Mon, 3 Jun 2024 15:25:58 +0000 Subject: [PATCH] Making some values required to find issues easier --- .github/workflows/library.ps1 | 1 + .github/workflows/repoInfo.ps1 | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/library.ps1 b/.github/workflows/library.ps1 index ac8768ba2..0bd5108c1 100644 --- a/.github/workflows/library.ps1 +++ b/.github/workflows/library.ps1 @@ -703,6 +703,7 @@ function Test-AccessTokens { function GetFoundSecretCount { Param ( + [Parameter(Mandatory=$true)] [string] $access_token_destination ) $url = "/orgs/$forkOrg/secret-scanning/alerts" diff --git a/.github/workflows/repoInfo.ps1 b/.github/workflows/repoInfo.ps1 index 03df033da..566acf374 100644 --- a/.github/workflows/repoInfo.ps1 +++ b/.github/workflows/repoInfo.ps1 @@ -28,6 +28,7 @@ function GetRepoInfo { Param ( $owner, $repo, + [Parameter(Mandatory=$true)] $access_token ) @@ -694,7 +695,11 @@ function GetMoreInfo { function Run { Param ( $actions, + + [Parameter(Mandatory=$true)] $access_token, + + [Parameter(Mandatory=$true)] $access_token_destination ) Write-Host "Got $($actions.Length) actions to get the repo information for"