Skip to content

Commit b09be3d

Browse files
authored
Merge pull request MicrosoftDocs#140 from MicrosoftDocs/update_to_powershell_7
Configured use to powershell 7
2 parents b16a2b3 + 170f9d9 commit b09be3d

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

azure-pipelines/checkout.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
parameters:
2+
- name: TargetBranch
3+
type: string
4+
default: 'main'
5+
16
steps:
27
- checkout: msgraph-sdk-powershell
38
clean: true
@@ -8,4 +13,31 @@ steps:
813
- checkout: self
914
clean: true
1015
fetchDepth: 1
16+
17+
- task: PowerShell@2
18+
displayName: "Configure user"
19+
inputs:
20+
targetType: "inline"
21+
script: |
22+
git config --global user.email "[email protected]"
23+
git config --global user.name "Timothy Wamalwa"
24+
25+
- task: Bash@3
26+
displayName: "Switch to target branch: ${{ parameters.TargetBranch }}"
27+
condition: and(succeeded(), ne('${{ parameters.TargetBranch }}', ''))
28+
inputs:
29+
targetType: inline
30+
script: |
31+
git status
32+
git fetch --all
33+
git checkout ${{ parameters.TargetBranch }}
34+
git pull
35+
git status
36+
37+
38+
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
39+
displayName: "Run CredScan"
40+
inputs:
41+
debugMode: false
42+
1143

azure-pipelines/update-template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ steps:
66
displayName: Install Required Modules
77
inputs:
88
targetType: 'inline'
9+
pwsh: true
910
script: |
1011
$modules = Get-Module -Name Microsoft.Graph -ListAvailable
1112
if ($modules.Count -gt 0 -and $modules[0].Version -eq "1.11.1") {

0 commit comments

Comments
 (0)