Skip to content

Commit 0de11e4

Browse files
committed
Fixes
1 parent 63af6e8 commit 0de11e4

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.github/workflows/build_net.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: windows-latest
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222
- name: Setup .NET Core
23-
uses: actions/setup-dotnet@v1
23+
uses: actions/setup-dotnet@v4
2424
with:
2525
dotnet-version: 8.0.x
2626

.github/workflows/feedback_service.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: windows-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Setup .NET Core
18-
uses: actions/setup-dotnet@v1
18+
uses: actions/setup-dotnet@v4
1919
with:
2020
dotnet-version: 8.0.x
2121
- name: Install dependencies

.github/workflows/github_client.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: windows-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Setup .NET Core
18-
uses: actions/setup-dotnet@v1
18+
uses: actions/setup-dotnet@v4
1919
with:
2020
dotnet-version: 8.0.x
2121
- name: Install dependencies

.github/workflows/repository_service.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: windows-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Setup .NET Core
18-
uses: actions/setup-dotnet@v1
18+
uses: actions/setup-dotnet@v4
1919
with:
2020
dotnet-version: 8.0.x
2121
- name: Install dependencies

.github/workflows/vscode_client.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: Setup .NET Core
19-
uses: actions/setup-dotnet@v1
19+
uses: actions/setup-dotnet@v4
2020
with:
2121
dotnet-version: 8.0.x
2222
- name: Install dependencies
@@ -36,7 +36,7 @@ jobs:
3636
run: dotnet publish src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj --configuration Release --self-contained false -p:PackageVsix=true
3737
- name: Upload release artifacts
3838
if: github.ref == 'refs/heads/main'
39-
uses: actions/upload-artifact@v2
39+
uses: actions/upload-artifact@v4
4040
with:
4141
name: vsix
4242
path: src/Clients/PullRequestQuantifier.VsCode.Client/**/*.vsix

src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/Program.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ private static async Task Clone(
3434
string pat)
3535
{
3636
var credentials = new NetworkCredential(userName, pat);
37-
var cloneOptions = new CloneOptions().FetchOptions.CredentialsProvider = (url, user, cred) => new SecureUsernamePasswordCredentials
37+
var cloneOptions = new CloneOptions();
38+
cloneOptions.FetchOptions = new FetchOptions
3839
{
39-
Username = credentials.UserName,
40-
Password = credentials.SecurePassword
40+
CredentialsProvider = (url, user, cred) => new SecureUsernamePasswordCredentials
41+
{
42+
Username = credentials.UserName,
43+
Password = credentials.Password // Use .Password, not .SecurePassword
44+
}
4145
};
4246

4347
foreach (var organization in organizations)

0 commit comments

Comments
 (0)