Skip to content

Commit bad3eb7

Browse files
author
Arin Ghazarian
authored
Merge branch 'main' into remove-rsa-sha2-256-workaround-from-bbs2gh
2 parents c57b8ff + 49ecd20 commit bad3eb7

File tree

105 files changed

+3017
-1596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3017
-1596
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
{
22
"name": "C# (.NET)",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"args": {
6-
// Update 'VARIANT' to pick a .NET Core version: 3.1, 6.0
7-
// Append -bullseye or -focal to pin to an OS version.
8-
"VARIANT": "6.0-bullseye"
9-
}
10-
},
3+
"image": "mcr.microsoft.com/devcontainers/dotnet:8.0",
114

125
// Configure tool-specific properties.
136
"customizations": {

.github/dependabot.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# To get started with Dependabot version updates, you'll need to specify which
22
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
3+
# Please see the documentation for more information:
44
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
56

67
version: 2
78
updates:
@@ -13,3 +14,7 @@ updates:
1314
directory: "/" # Location of package manifests
1415
schedule:
1516
interval: "weekly"
17+
- package-ecosystem: "devcontainers"
18+
directory: "/"
19+
schedule:
20+
interval: weekly

.github/workflows/CI.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Initialize CodeQL
2727
if: matrix.runner-os == 'ubuntu-latest'
28-
uses: github/codeql-action/init@v2
28+
uses: github/codeql-action/init@v3
2929
with:
3030
languages: 'csharp'
3131
config-file: ./.github/codeql/codeql-config.yml
@@ -63,29 +63,29 @@ jobs:
6363
# This is used by the subsequent publish-test-results.yml
6464
- name: Upload Unit Test Results
6565
if: always() && matrix.runner-os == 'ubuntu-latest'
66-
uses: actions/upload-artifact@v3
66+
uses: actions/upload-artifact@v4
6767
with:
6868
name: Unit Test Results
6969
path: src/OctoshiftCLI.Tests/unit-tests.xml
7070

7171
# This is used by the subsequent publish-test-results.yml
7272
- name: Upload Code Coverage Report
7373
if: always() && matrix.runner-os == 'ubuntu-latest'
74-
uses: actions/upload-artifact@v3
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: Code Coverage Report
7777
path: code-coverage-results.md
78-
78+
7979
- name: Perform CodeQL Analysis
80-
uses: github/codeql-action/analyze@v2
80+
uses: github/codeql-action/analyze@v3
8181
if: matrix.runner-os == 'ubuntu-latest'
8282

8383
upload-event-file:
8484
runs-on: ubuntu-latest
8585
steps:
8686
# This is used by the subsequent publish-test-results.yaml
8787
- name: Upload Event File
88-
uses: actions/upload-artifact@v3
88+
uses: actions/upload-artifact@v4
8989
with:
9090
name: Event File
9191
path: ${{ github.event_path }}
@@ -130,7 +130,7 @@ jobs:
130130
SKIP_LINUX: "true"
131131

132132
- name: Upload Binaries
133-
uses: actions/upload-artifact@v3
133+
uses: actions/upload-artifact@v4
134134
with:
135135
name: binaries-${{ matrix.target-os }}
136136
path: |
@@ -162,8 +162,9 @@ jobs:
162162
with:
163163
global-json-file: global.json
164164

165+
165166
- name: Download Binaries
166-
uses: actions/download-artifact@v3
167+
uses: actions/download-artifact@v4
167168
with:
168169
name: binaries-${{ matrix.runner-os }}
169170
path: dist
@@ -213,14 +214,14 @@ jobs:
213214
working-directory: ./gh-gei
214215
env:
215216
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
216-
217+
217218
- name: Install gh-ado2gh extension
218219
run: gh extension install .
219220
shell: pwsh
220221
working-directory: ./gh-ado2gh
221222
env:
222223
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223-
224+
224225
- name: Install gh-bbs2gh extension
225226
run: gh extension install .
226227
shell: pwsh
@@ -229,7 +230,7 @@ jobs:
229230
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
230231

231232
- name: Integration Test
232-
env:
233+
env:
233234
ADO_PAT: ${{ secrets.ADO_PAT }}
234235
GHEC_PAT: ${{ secrets.GHEC_PAT }}
235236
GHES_PAT: ${{ secrets.GHES_PAT }}
@@ -248,8 +249,8 @@ jobs:
248249
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
249250
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
250251
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
251-
LD_LIBRARY_PATH: '$LD_LIBRARY_PATH:${{ github.workspace }}/src/OctoshiftCLI.IntegrationTests/bin/Debug/net6.0/runtimes/ubuntu.18.04-x64/native'
252-
run: dotnet test src/OctoshiftCLI.IntegrationTests/OctoshiftCLI.IntegrationTests.csproj --filter "${{ matrix.source-vcs }}ToGithub" --logger:"junit;LogFilePath=integration-tests.xml" /p:VersionPrefix=9.9
252+
LD_LIBRARY_PATH: '$LD_LIBRARY_PATH:${{ github.workspace }}/src/OctoshiftCLI.IntegrationTests/bin/Debug/net8.0/runtimes/ubuntu.18.04-x64/native'
253+
run: dotnet test src/OctoshiftCLI.IntegrationTests/OctoshiftCLI.IntegrationTests.csproj --filter "${{ matrix.source-vcs }}ToGithub" --logger:"junit;LogFilePath=integration-tests.xml" --logger "console;verbosity=normal" /p:VersionPrefix=9.9
253254

254255
- name: Publish Integration Test Results
255256
uses: EnricoMi/publish-unit-test-result-action@v2
@@ -258,9 +259,9 @@ jobs:
258259
files: "**/*-tests.xml"
259260
check_name: "Integration Test Results - ${{ matrix.source-vcs }}"
260261
comment_mode: off
261-
262+
262263
- name: Upload test logs
263-
uses: actions/upload-artifact@v3
264+
uses: actions/upload-artifact@v4
264265
if: always()
265266
with:
266267
name: integration-test-logs-${{ matrix.source-vcs }}-${{ matrix.runner-os }}
@@ -317,7 +318,7 @@ jobs:
317318
CLI_VERSION: ${{ github.ref }}
318319

319320
- name: Create gh-gei Release
320-
uses: softprops/action-gh-release@v1
321+
uses: softprops/action-gh-release@v2
321322
with:
322323
body_path: ./RELEASENOTES.md
323324
files: |
@@ -329,9 +330,9 @@ jobs:
329330
./dist/win-x86/gei-windows-386.exe
330331
./dist/linux-x64/gei-linux-amd64
331332
./dist/osx-x64/gei-darwin-amd64
332-
333+
333334
- name: Create gh-ado2gh Release
334-
uses: softprops/action-gh-release@v1
335+
uses: softprops/action-gh-release@v2
335336
with:
336337
body_path: ./RELEASENOTES.md
337338
repository: github/gh-ado2gh
@@ -343,7 +344,7 @@ jobs:
343344
./dist/osx-x64/ado2gh-darwin-amd64
344345
345346
- name: Create gh-bbs2gh Release
346-
uses: softprops/action-gh-release@v1
347+
uses: softprops/action-gh-release@v2
347348
with:
348349
body_path: ./RELEASENOTES.md
349350
repository: github/gh-bbs2gh
@@ -360,13 +361,13 @@ jobs:
360361
$TAG_NAME = "${{ github.ref }}".Substring(10)
361362
Get-Content ./RELEASENOTES.md | Out-File -FilePath ./releasenotes/$TAG_NAME.md
362363
"" | Out-File ./RELEASENOTES.md
363-
364+
364365
- name: Update LATEST-VERSION.TXT
365366
shell: pwsh
366367
run: |
367368
$TAG_NAME = "${{ github.ref }}".Substring(10)
368369
$TAG_NAME | Out-File ./LATEST-VERSION.txt
369-
370+
370371
- name: Commit Release Notes and Version
371372
uses: stefanzweifel/git-auto-commit-action@v5
372373
with:

.github/workflows/integration-tests.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
ref: 'refs/pull/${{ github.event.inputs.pr_number }}/merge'
21+
fetch-depth: 0
1922

2023
- name: Setup .NET
2124
uses: actions/setup-dotnet@v2
@@ -47,7 +50,7 @@ jobs:
4750
SKIP_LINUX: "true"
4851

4952
- name: Upload Binaries
50-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
5154
with:
5255
name: binaries-${{ matrix.target-os }}
5356
path: |
@@ -74,7 +77,7 @@ jobs:
7477
with:
7578
ref: 'refs/pull/${{ github.event.inputs.pr_number }}/merge'
7679
fetch-depth: 0
77-
80+
7881
- name: Get PR Commit
7982
if: always() && matrix.runner-os == 'ubuntu-latest'
8083
run: |
@@ -86,9 +89,9 @@ jobs:
8689
uses: actions/setup-dotnet@v2
8790
with:
8891
global-json-file: global.json
89-
92+
9093
- name: Download Binaries
91-
uses: actions/download-artifact@v3
94+
uses: actions/download-artifact@v4
9295
with:
9396
name: binaries-${{ matrix.runner-os }}
9497
path: dist
@@ -138,14 +141,14 @@ jobs:
138141
working-directory: ./gh-gei
139142
env:
140143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141-
144+
142145
- name: Install gh-ado2gh extension
143146
run: gh extension install .
144147
shell: pwsh
145148
working-directory: ./gh-ado2gh
146149
env:
147150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148-
151+
149152
- name: Install gh-bbs2gh extension
150153
run: gh extension install .
151154
shell: pwsh
@@ -154,7 +157,7 @@ jobs:
154157
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
155158

156159
- name: Integration Test
157-
env:
160+
env:
158161
ADO_PAT: ${{ secrets.ADO_PAT }}
159162
GHEC_PAT: ${{ secrets.GHEC_PAT }}
160163
GHES_PAT: ${{ secrets.GHES_PAT }}
@@ -174,8 +177,8 @@ jobs:
174177
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
175178
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
176179
GEI_DEBUG_MODE: 'true'
177-
LD_LIBRARY_PATH: '$LD_LIBRARY_PATH:${{ github.workspace }}/src/OctoshiftCLI.IntegrationTests/bin/Debug/net6.0/runtimes/ubuntu.18.04-x64/native'
178-
run: dotnet test src/OctoshiftCLI.IntegrationTests/OctoshiftCLI.IntegrationTests.csproj --filter "${{ matrix.source-vcs }}ToGithub" --logger:"junit;LogFilePath=integration-tests.xml" /p:VersionPrefix=9.9
180+
LD_LIBRARY_PATH: '$LD_LIBRARY_PATH:${{ github.workspace }}/src/OctoshiftCLI.IntegrationTests/bin/Debug/net8.0/runtimes/ubuntu.18.04-x64/native'
181+
run: dotnet test src/OctoshiftCLI.IntegrationTests/OctoshiftCLI.IntegrationTests.csproj --filter "${{ matrix.source-vcs }}ToGithub" --logger:"junit;LogFilePath=integration-tests.xml" --logger "console;verbosity=normal" /p:VersionPrefix=9.9
179182

180183
- name: Publish Integration Test Results
181184
uses: EnricoMi/publish-unit-test-result-action@v2
@@ -185,9 +188,9 @@ jobs:
185188
check_name: "Integration Test Results - ${{ matrix.source-vcs }}"
186189
comment_mode: off
187190
commit: ${{ env.PR_SHA }}
188-
191+
189192
- name: Upload test logs
190-
uses: actions/upload-artifact@v3
193+
uses: actions/upload-artifact@v4
191194
if: always()
192195
with:
193196
name: integration-test-logs-${{ matrix.source-vcs }}-${{ matrix.runner-os }}

.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/src/gei/bin/Debug/net6.0/gei.dll",
13+
"program": "${workspaceFolder}/src/gei/bin/Debug/net8.0/gei.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}/src/gei",
1616
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
@@ -26,7 +26,7 @@
2626
"request": "launch",
2727
"preLaunchTask": "build-ado2gh",
2828
// If you have changed target frameworks, make sure to update the program path.
29-
"program": "${workspaceFolder}/src/ado2gh/bin/Debug/net6.0/ado2gh.dll",
29+
"program": "${workspaceFolder}/src/ado2gh/bin/Debug/net8.0/ado2gh.dll",
3030
"args": [],
3131
"cwd": "${workspaceFolder}/src/ado2gh",
3232
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
@@ -47,7 +47,7 @@
4747
"request": "launch",
4848
"preLaunchTask": "build",
4949
// If you have changed target frameworks, make sure to update the program path.
50-
"program": "${workspaceFolder}/src/bbs2gh/bin/Debug/net6.0/bbs2gh.dll",
50+
"program": "${workspaceFolder}/src/bbs2gh/bin/Debug/net8.0/bbs2gh.dll",
5151
"args": [],
5252
"cwd": "${workspaceFolder}/src/bbs2gh",
5353
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

CONTRIBUTING.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Use the [Discussions](https://github.com/github/gh-gei/discussions) tab in this
2020

2121
All work done by the maintainers of this repo is tracked in this repo using Issues. We have a hierarchical backlog with Epics at the top, broken down into Batches then broken down to Tasks (epic/batch/task is indicated via labels on the issues). You can see an example Epic and navigate down from there [here](https://github.com/github/gh-gei/issues/101).
2222

23-
## Running tests
23+
## Running tests
2424

2525
### In the terminal
2626
If you want to run tests selectively in the terminal, you can use dotnet test with `--filter` option.
@@ -36,31 +36,31 @@ Here are some examples:
3636
dotnet test --filter AdoApiTests.GetUserId_Should_Return_UserId
3737
```
3838

39-
### Debugger
39+
### Debugger
4040

41-
If you are using VS code, you can install the [C# dev kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) which will add the testing extension.
42-
- Press the play to run the entire test suite, or navigate to the specific test you would like to run.
43-
- If you set a breakpoint within your code and press the play button with the bug next to it you will be able to inspect your code in more detial.
41+
If you are using VS code, you can install the [C# dev kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) which will add the testing extension.
42+
- Press the play to run the entire test suite, or navigate to the specific test you would like to run.
43+
- If you set a breakpoint within your code and press the play button with the bug next to it you will be able to inspect your code in more detial.
4444

45-
### Useful links
45+
### Useful links
4646
1. [Dotnet test commands](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test#filter-option-details)
4747
2. [Run selective unit tests](https://learn.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest)
4848
3. [C# dev kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit)
49-
5049

5150

52-
## Debugging code
5351

54-
There are two ways to debug code within VS code.
52+
## Debugging code
53+
54+
There are two ways to debug code within VS code.
5555

5656
### Run GH-GEI command locally
57-
Run the following commands in your terminal depending on the provider you are looking to run the commands for.
57+
Run the following commands in your terminal depending on the provider you are looking to run the commands for.
5858

59-
Azure DevOps:
59+
Azure DevOps:
6060
- Generic: `dotnet run --project src/ado2gh/ado2gh.csproj -- [command]`
6161
- Example: `dotnet run --project src/ado2gh/ado2gh.csproj -- migrate-repo --help`
6262

63-
Bitbucket Server:
63+
Bitbucket Server:
6464
- Generic: `dotnet run --project src/bbs2gh/bbs2gh.csproj -- [command]`
6565
- Example: `dotnet run --project src/bbs2gh/bbs2gh.csproj -- migrate-repo --help`
6666

@@ -77,7 +77,7 @@ In your terminal:
7777
(v0.4.0 is the latest version compatible with .NET 6.0)
7878

7979
Run it:
80-
`csharprepl -r src/bbs2gh/bin/Debug/net6.0/Octoshift.dll`
80+
`csharprepl -r src/bbs2gh/bin/Debug/net8.0/Octoshift.dll`
8181

8282
Then load up assemblies:
8383
```csharp
@@ -96,7 +96,7 @@ var aws = new AwsApi("access-key-id", "secret-access-key");
9696

9797
### Use debugger
9898

99-
If you use the built in debugger you are able to set breakpoints and inspect the code within VS Code.
99+
If you use the built in debugger you are able to set breakpoints and inspect the code within VS Code.
100100

101101
1. Navigate to `.vs_code/launch.json`.
102102
2. Find the command you are looking to run, for example: `Launch ado2gh`.
@@ -107,7 +107,7 @@ If you use the built in debugger you are able to set breakpoints and inspect the
107107
6. Navigate to the drop down menu and select the command you would like to run, for example: `Launch ado2gh`.
108108
7. Press the play button
109109

110-
### Useful links
110+
### Useful links
111111

112112
1. [Run a .NET app](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-run)
113113
2. [Debugging using vscode](https://code.visualstudio.com/docs/editor/debugging)

LATEST-VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.8.0
1+
v1.11.0

0 commit comments

Comments
 (0)