diff --git a/.build/tasks/New-Release.GitHub.build.ps1 b/.build/tasks/New-Release.GitHub.build.ps1 index 5c7f8ae..b4b482e 100644 --- a/.build/tasks/New-Release.GitHub.build.ps1 +++ b/.build/tasks/New-Release.GitHub.build.ps1 @@ -109,7 +109,10 @@ task Publish_release_to_GitHub -if ($GitHubToken -and (Get-Module -Name PowerShe ErrorAction = 'Stop' } - Write-Build DarkGray "Checking if the Release exists: `r`n Get-GithubRelease $($getGHReleaseParams | Out-String)" + $displayGHReleaseParams = $getGHReleaseParams.Clone() + $displayGHReleaseParams['AccessToken'] = 'Redacted' + + Write-Build DarkGray "Checking if the Release exists: `r`n Get-GithubRelease $($displayGHReleaseParams | Out-String)" try { diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b21dfa..928018b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added logo. - Added Get-GHOwnerRepoFromRemoteUrl function. +### Removed + +- Removed GitHub Access Token from variable being displayed during build. Fixes Issue #17. + ### Changed - Fixed tasks to use the new Sampler version and its public functions.