-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I'm using this module as a step in a GitHub Action workflow.
- name: Queue build
env:
AZURE_DEVOPS_TOKEN: ${{ secrets.AZURE_DEVOPS_TOKEN }}
shell: pwsh
run: |
Install-Module AzurePipelinesPS -Repository PSGallery -Force
Import-Module AzurePipelinesPS
$secureToken = ConvertTo-SecureString -String $env:AZURE_DEVOPS_TOKEN -AsPlainText
Get-APBuildDefinition -Project MyProject -Collection MyCollection -PersonalAccessToken $secureToken -Instance 'https://dev.azure.com/' -ApiVersion '6.0' -DefinitionID 1 -VerboseIf the job that this step runs in has runs-on: ubuntu-latest, then the Get-APBuildDefinition fails (returns the standard html text saying you need to log in).
If I set runs-on: windows-latest then the call succeeds.
Not sure why a Linux runner would cause it to fail
Metadata
Metadata
Assignees
Labels
No labels