Skip to content

Commit a4dd2fb

Browse files
authored
Merge branch 'main' into backport/pr-50926-to-main
2 parents 817b7f7 + 6a6992f commit a4dd2fb

File tree

7 files changed

+40
-16
lines changed

7 files changed

+40
-16
lines changed

.github/workflows/add-lockdown-label.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Add Branch Lockdown Label to PRs
33
on:
44
pull_request_target:
55
workflow_dispatch: # Allows manual triggering of the workflow
6+
branches:
7+
- 'release/8.*'
8+
- 'release/9.*'
9+
- 'release/10.*'
10+
- 'main'
611

712
permissions:
813
actions: write # For managing the operation state cache
@@ -11,6 +16,8 @@ permissions:
1116
jobs:
1217
add-label:
1318
runs-on: ubuntu-latest
19+
# Only run on the main repository, not forks
20+
if: github.repository == 'dotnet/sdk'
1421

1522
permissions:
1623
contents: read
@@ -19,6 +26,8 @@ jobs:
1926
steps:
2027
- name: Checkout repository
2128
uses: actions/checkout@v2
29+
with:
30+
persist-credentials: false
2231

2332
- name: Install jq
2433
run: sudo apt-get install -y jq

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: false
2325
- name: Do an initial build to ensure all dependencies are restored
2426
continue-on-error: true
2527
run: |

.github/workflows/remove-lockdown-label.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: Remove Lockdown Label from PRs
22

33
on:
44
pull_request_target:
5-
types: [closed]
5+
branches:
6+
- 'release/8.*'
7+
- 'release/9.*'
8+
- 'release/10.*'
9+
- 'main'
610

711
permissions:
812
actions: write
913
pull-requests: write
1014

1115
jobs:
1216
remove-labels:
13-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Branding')
17+
# Only run on the main repository, not forks
18+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Branding') && github.repository == 'dotnet/sdk'
1419
runs-on: ubuntu-latest
1520
steps:
1621
- name: PR's only change is <VersionFeature> in eng/Versions.props

.github/workflows/update-man-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
ref: release/10.0.1xx
20+
persist-credentials: false
2021

2122
- name: Update man-pages
2223
run: |

.github/workflows/update-static-web-assets-baselines.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424

2525
- name: Checkout PR branch
2626
run: |
27-
gh pr checkout ${{ github.event.inputs.pr_number }}
27+
gh pr checkout ${GITHUB_EVENT_INPUTS_PR_NUMBER}
2828
env:
2929
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}
3031

3132
- name: Run build script
3233
id: build
@@ -79,33 +80,39 @@ jobs:
7980
- name: Comment on PR - No changes
8081
if: steps.update.outcome == 'success' && steps.check-changes.outputs.changes == 'false'
8182
run: |
82-
gh pr comment ${{ github.event.inputs.pr_number }} \
83+
gh pr comment ${GITHUB_EVENT_INPUTS_PR_NUMBER} \
8384
--body "No baselines were updated."
8485
env:
8586
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}
8688

8789
- name: Comment on PR - Changes pushed
8890
if: steps.commit.outcome == 'success'
8991
run: |
90-
gh pr comment ${{ github.event.inputs.pr_number }} \
92+
gh pr comment ${GITHUB_EVENT_INPUTS_PR_NUMBER} \
9193
--body "Baselines updated."
9294
env:
9395
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}
9497

9598
- name: Comment on PR - Failure
9699
if: steps.build.outcome == 'failure' || steps.update.outcome == 'failure' || (steps.check-changes.outputs.changes == 'true' && steps.commit.outcome == 'failure')
97100
run: |
98101
ERROR_MSG="Update baselines failed"
99102
100-
if [[ "${{ steps.build.outcome }}" == "failure" ]]; then
103+
if [[ "${STEPS_BUILD_OUTCOME}" == "failure" ]]; then
101104
ERROR_MSG="$ERROR_MSG: Build script failed"
102-
elif [[ "${{ steps.update.outcome }}" == "failure" ]]; then
105+
elif [[ "${STEPS_UPDATE_OUTCOME}" == "failure" ]]; then
103106
ERROR_MSG="$ERROR_MSG: Update baselines script failed"
104-
elif [[ "${{ steps.commit.outcome }}" == "failure" ]]; then
107+
elif [[ "${STEPS_COMMIT_OUTCOME}" == "failure" ]]; then
105108
ERROR_MSG="$ERROR_MSG: Failed to commit or push changes"
106109
fi
107110
108-
gh pr comment ${{ github.event.inputs.pr_number }} \
111+
gh pr comment ${GITHUB_EVENT_INPUTS_PR_NUMBER} \
109112
--body "$ERROR_MSG"
110113
env:
111-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
STEPS_BUILD_OUTCOME: ${{ steps.build.outcome }}
116+
STEPS_UPDATE_OUTCOME: ${{ steps.update.outcome }}
117+
STEPS_COMMIT_OUTCOME: ${{ steps.commit.outcome }}
118+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}

eng/Version.Details.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ This file should be imported by eng/Versions.props
140140
<!-- dotnet/core-setup dependencies -->
141141
<NETStandardLibraryRefPackageVersion>2.1.0</NETStandardLibraryRefPackageVersion>
142142
<!-- microsoft/testfx dependencies -->
143-
<MicrosoftTestingPlatformPackageVersion>2.1.0-preview.25529.4</MicrosoftTestingPlatformPackageVersion>
144-
<MSTestPackageVersion>4.1.0-preview.25529.4</MSTestPackageVersion>
143+
<MicrosoftTestingPlatformPackageVersion>2.1.0-preview.25551.1</MicrosoftTestingPlatformPackageVersion>
144+
<MSTestPackageVersion>4.1.0-preview.25551.1</MSTestPackageVersion>
145145
</PropertyGroup>
146146
<!--Property group for alternate package version names-->
147147
<PropertyGroup>

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,13 @@
553553
<Uri>https://github.com/dotnet/dotnet</Uri>
554554
<Sha>be28ec777bf12db631725399c442448d52093087</Sha>
555555
</Dependency>
556-
<Dependency Name="Microsoft.Testing.Platform" Version="2.1.0-preview.25529.4">
556+
<Dependency Name="Microsoft.Testing.Platform" Version="2.1.0-preview.25551.1">
557557
<Uri>https://github.com/microsoft/testfx</Uri>
558-
<Sha>e96f161396747bd209333e1d2f54fc8164a79905</Sha>
558+
<Sha>803c90bd9cc6017674a218b5a51a9d4fcf251cdb</Sha>
559559
</Dependency>
560-
<Dependency Name="MSTest" Version="4.1.0-preview.25529.4">
560+
<Dependency Name="MSTest" Version="4.1.0-preview.25551.1">
561561
<Uri>https://github.com/microsoft/testfx</Uri>
562-
<Sha>e96f161396747bd209333e1d2f54fc8164a79905</Sha>
562+
<Sha>803c90bd9cc6017674a218b5a51a9d4fcf251cdb</Sha>
563563
</Dependency>
564564
<Dependency Name="Microsoft.Extensions.Configuration.Ini" Version="10.0.0-rc.1.25515.110">
565565
<Uri>https://github.com/dotnet/dotnet</Uri>

0 commit comments

Comments
 (0)