Skip to content

Commit 739a2d4

Browse files
committed
fix(ci): make trusted main pin explicit
1 parent e13c6aa commit 739a2d4

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/scripts/CoverageSummary.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ namespace Orleans.Coverage;
1313

1414
public sealed class CoverageSummaryResult
1515
{
16-
public required long CoveredBranches { get; init; }
16+
public long CoveredBranches { get; set; }
1717

18-
public required long CoveredLines { get; init; }
18+
public long CoveredLines { get; set; }
1919

20-
public required int Reports { get; init; }
20+
public int Reports { get; set; }
2121

22-
public required int SourceFiles { get; init; }
22+
public int SourceFiles { get; set; }
2323

24-
public required long TotalBranches { get; init; }
24+
public long TotalBranches { get; set; }
2525

26-
public required long TotalLines { get; init; }
26+
public long TotalLines { get; set; }
2727
}
2828

2929
public static class CoverageSummaryReader

.github/workflows/test-results.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ jobs:
6767
- name: Pin trusted main
6868
id: trusted-main
6969
shell: pwsh
70-
run: '"sha=$(git rev-parse HEAD)" >> $env:GITHUB_OUTPUT'
70+
run: |
71+
$trustedMainSha = git rev-parse HEAD
72+
"sha=$trustedMainSha" >> $env:GITHUB_OUTPUT
7173
- name: Test coverage reporting
7274
shell: pwsh
7375
run: ./.github/scripts/test-summarize-coverage.ps1

0 commit comments

Comments
 (0)