Skip to content

Commit

Permalink
Remove GitHub Token from Build Display. Fixes issue #17 (#18)
Browse files Browse the repository at this point in the history
- Removed GitHub Access Token from variable being displayed during build. Fixes Issue #17.
  • Loading branch information
phbits authored Aug 31, 2021
1 parent d314a29 commit fa359c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .build/tasks/New-Release.GitHub.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fa359c1

Please sign in to comment.