Skip to content

Commit 557c8df

Browse files
committed
ci: fix ghalint
1 parent 66a856d commit 557c8df

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

.github/workflows/benchmark.yml renamed to .github/workflows/benchmark.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ on:
2121

2222
jobs:
2323
benchmark:
24-
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
runs-on: ubuntu-24.04
2527
timeout-minutes: 360 # Default: 360 minutes
26-
strategy:
27-
fail-fast: true
2828
steps:
2929
- uses: Cysharp/Actions/.github/actions/checkout@main
3030
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main

.github/workflows/build-debug.yml renamed to .github/workflows/build-debug.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ on:
1010

1111
jobs:
1212
build-dotnet:
13-
runs-on: ${{ matrix.os }}
14-
timeout-minutes: 10
1513
strategy:
1614
matrix:
17-
os: [ubuntu-latest, windows-latest]
15+
os: [ubuntu-24.04, windows-latest]
16+
permissions:
17+
contents: read
18+
runs-on: ${{ matrix.os }}
19+
timeout-minutes: 10
1820
steps:
1921
- uses: Cysharp/Actions/.github/actions/checkout@main
2022
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
@@ -24,7 +26,10 @@ jobs:
2426
- run: dotnet test -c Release tests/System.Linq.Tests/System.Linq.Tests.slnx --no-build
2527

2628
check-codecov-token:
27-
runs-on: ubuntu-latest
29+
permissions:
30+
contents: read
31+
runs-on: ubuntu-24.04
32+
timeout-minutes: 10
2833
outputs:
2934
run_codecoverage: ${{ steps.check-token.outputs.token_exists }}
3035
steps:
@@ -45,7 +50,9 @@ jobs:
4550
code-coverage:
4651
if: ${{ needs.check-codecov-token.outputs.run_codecoverage == 'true' }} # secrets can't referenced in `if` so it needs separate job.
4752
needs: check-codecov-token
48-
runs-on: ubuntu-latest
53+
permissions:
54+
contents: read
55+
runs-on: ubuntu-24.04
4956
timeout-minutes: 30
5057
steps:
5158
- uses: Cysharp/Actions/.github/actions/checkout@main
@@ -68,13 +75,13 @@ jobs:
6875
$sessionId = 'ZLinq'
6976
7077
dotnet coverage collect --session-id $sessionId --nologo --settings codecoverage.runsettings --server-mode --background
71-
try
78+
try
7279
{
7380
dotnet coverage connect $sessionId --nologo "dotnet test ../ -c Release --framework net9.0 --no-build"
74-
81+
7582
dotnet coverage connect $sessionId --nologo "dotnet test -c Release System.Linq.Tests/System.Linq.Tests.slnx --framework net9.0 --no-build"
7683
}
77-
finally
84+
finally
7885
{
7986
dotnet coverage shutdown $sessionId --nologo --timeout 60000
8087
}

.github/workflows/build-release.yml renamed to .github/workflows/build-release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414

1515
jobs:
1616
update-packagejson:
17+
permissions:
18+
contents: write
1719
uses: Cysharp/Actions/.github/workflows/update-packagejson.yaml@main
1820
with:
1921
file-path: |
@@ -23,7 +25,9 @@ jobs:
2325

2426
build-dotnet:
2527
needs: [update-packagejson]
26-
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
runs-on: ubuntu-24.04
2731
timeout-minutes: 10
2832
steps:
2933
- uses: Cysharp/Actions/.github/actions/checkout@main
@@ -41,6 +45,8 @@ jobs:
4145
# release
4246
create-release:
4347
needs: [update-packagejson, build-dotnet]
48+
permissions:
49+
contents: write
4450
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
4551
with:
4652
commit-id: ${{ needs.update-packagejson.outputs.sha }}
@@ -53,6 +59,8 @@ jobs:
5359
cleanup:
5460
if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
5561
needs: [update-packagejson, build-dotnet]
62+
permissions:
63+
contents: write
5664
uses: Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
5765
with:
5866
branch: ${{ needs.update-packagejson.outputs.branch-name }}

.github/workflows/stale.yml renamed to .github/workflows/stale.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ on:
77

88
jobs:
99
stale:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
issues: write
1014
uses: Cysharp/Actions/.github/workflows/stale-issue.yaml@main

0 commit comments

Comments
 (0)