File: login-to-github.yml

package info (click to toggle)
python-azure 20260203%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 793,600 kB
  • sloc: python: 6,552,618; ansic: 804; javascript: 287; sh: 204; makefile: 198; xml: 109
file content (25 lines) | stat: -rw-r--r-- 733 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Will output a variable named GH_TOKEN_<Owner> for each owner in TokenOwners if there is only one owner it will just output GH_TOKEN

parameters:
- name: TokenOwners
  type: object
  default: 
    - Azure
- name: VariableNamePrefix
  type: string 
  default: GH_TOKEN
- name: ScriptDirectory
  default: eng/common/scripts

steps:
- task: AzureCLI@2
  displayName: "Login to GitHub"
  inputs:
    azureSubscription: 'AzureSDKEngKeyVault Secrets'
    scriptType: pscore
    scriptLocation: scriptPath
    scriptPath: ${{ parameters.ScriptDirectory }}/login-to-github.ps1
    arguments: >
     -InstallationTokenOwners '${{ join(''',''', parameters.TokenOwners) }}'
     -VariableNamePrefix '${{ parameters.VariableNamePrefix }}'