Skip to content

Commit 56076f9

Browse files
authored
AL-Go E2E tests - Use GH_Token rather than passing token as parameter (#1626)
Use GH_Token rather than passing token as parameter Current error: ``` Deploy.ps1: /home/runner/work/AL-Go/AL-Go/e2eTests/SetupRepositories.ps1:27 Line | 27 | … PSScriptRoot "..\Internal\Deploy.ps1") -config $config -token $e2epat … | ~~~~~~ | A parameter cannot be found that matches parameter name 'token'. ```
1 parent 2fa88e5 commit 56076f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/E2E.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ jobs:
117117
id: setup
118118
env:
119119
_bcContainerHelperVersion: ${{ github.event.inputs.bcContainerHelperVersion }}
120+
GH_TOKEN: ${{ secrets.E2EPAT }}
120121
run: |
121122
$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0
122-
. (Join-Path "." "e2eTests/SetupRepositories.ps1") -githubOwner '${{ needs.Check.outputs.githubowner }}' -e2epat '${{ Secrets.E2EPAT }}' -bcContainerHelperVersion $ENV:_bcContainerHelperVersion
123+
. (Join-Path "." "e2eTests/SetupRepositories.ps1") -githubOwner '${{ needs.Check.outputs.githubowner }}' -bcContainerHelperVersion $ENV:_bcContainerHelperVersion
123124
124125
Analyze:
125126
runs-on: [ ubuntu-latest ]

e2eTests/SetupRepositories.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Param(
22
[string] $githubOwner,
3-
[string] $e2epat,
43
[string] $bcContainerHelperVersion = ''
54
)
65

@@ -24,7 +23,7 @@ $config = [ordered]@{
2423
"defaultBcContainerHelperVersion" = $bcContainerHelperVersion
2524
}
2625

27-
. (Join-Path $PSScriptRoot "..\Internal\Deploy.ps1") -config $config -token $e2epat -DirectCommit $true
26+
. (Join-Path $PSScriptRoot "..\Internal\Deploy.ps1") -config $config -DirectCommit $true
2827

2928
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "actionsRepo=$actionsRepo"
3029
Write-Host "actionsRepo=$actionsRepo"

0 commit comments

Comments
 (0)