File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 2626 sshKeySecureFile : ' azure-pipelines-ssh-key-new'
2727 - script : |
2828 git config --global url.ssh://[email protected] /.insteadOf https://github.com/ 29- git config --global url."[email protected] :v3".insteadOf https://msazure.visualstudio.com 3029 displayName: 'Set up the Go workspace'
3130
3231 - script : |
8180 inputs :
8281 version : ' 1.24.3'
8382
84- - task : InstallSSHKey@0
85- inputs :
86- knownHostsEntry : |
87- $(KNOWN_HOST_GITHUB)
88- $(KNOWN_HOST_GITHUB_ECDSA)
89- $(KNOWN_HOST_GITHUB_Ed25519)
90- sshPublicKey : ' $(SSH_PUBLIC_KEY)'
91- sshKeySecureFile : ' azure-pipelines-ssh-key-new'
92-
93- - task : AzureCLI@2
94- inputs :
95- azureSubscription : ' kva-azuredevops-gcm'
96- scriptType : ' bash'
97- scriptLocation : ' inlineScript'
98- inlineScript : |
99- # Obtain Azure DevOps access token
100- aadToken=$(az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv)
101- # Set git configuration for authentication
102- git config --global http.extraheader "AUTHORIZATION: bearer $aadToken"
103- git config --global url."ssh://[email protected] /".insteadOf "https://github.com/" 104- displayName : ' Set git config'
105-
10683 - script : |
10784 make golangci-lint
10885 displayName: 'Run GolangCI-Lint'
You can’t perform that action at this time.
0 commit comments