Skip to content

Commit 7568061

Browse files
committed
ci: fix ghalint
1 parent 459a572 commit 7568061

File tree

6 files changed

+31
-7
lines changed

6 files changed

+31
-7
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on:
1010

1111
jobs:
1212
build-dotnet:
13-
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
runs-on: ubuntu-24.04
1416
timeout-minutes: 10
1517
steps:
1618
- uses: Cysharp/Actions/.github/actions/checkout@main
@@ -25,7 +27,9 @@ jobs:
2527
max-parallel: 2
2628
matrix:
2729
unity: ["2022.3.39f1", "6000.0.12f1"] # Test with LTS
28-
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
runs-on: ubuntu-24.04
2933
timeout-minutes: 30 # Unity build takes more than 20min.
3034
steps:
3135
- name: Load secrets

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ on:
88

99
jobs:
1010
run-docfx:
11-
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pages: write
14+
runs-on: ubuntu-24.04
1215
timeout-minutes: 10
1316
steps:
1417
- uses: Cysharp/Actions/.github/actions/checkout@main

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

Lines changed: 12 additions & 2 deletions
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: ./src/UniTask/Assets/Plugins/UniTask/package.json
@@ -22,7 +24,9 @@ jobs:
2224

2325
build-dotnet:
2426
needs: [update-packagejson]
25-
runs-on: ubuntu-latest
27+
permissions:
28+
contents: read
29+
runs-on: ubuntu-24.04
2630
timeout-minutes: 10
2731
steps:
2832
- run: echo ${{ needs.update-packagejson.outputs.sha }}
@@ -46,7 +50,9 @@ jobs:
4650
strategy:
4751
matrix:
4852
unity: ["2022.3.39f1"]
49-
runs-on: ubuntu-latest
53+
permissions:
54+
contents: read
55+
runs-on: ubuntu-24.04
5056
timeout-minutes: 15
5157
steps:
5258
- name: Load secrets
@@ -92,6 +98,8 @@ jobs:
9298
# release
9399
create-release:
94100
needs: [update-packagejson, build-dotnet, build-unity]
101+
permissions:
102+
contents: write
95103
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
96104
with:
97105
commit-id: ${{ needs.update-packagejson.outputs.sha }}
@@ -105,6 +113,8 @@ jobs:
105113
cleanup:
106114
if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
107115
needs: [update-packagejson, build-dotnet, build-unity]
116+
permissions:
117+
contents: write
108118
uses: Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
109119
with:
110120
branch: ${{ needs.update-packagejson.outputs.branch-name }}

.github/workflows/prevent-github-change.yml renamed to .github/workflows/prevent-github-change.yaml

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

88
jobs:
99
detect:
10+
permissions:
11+
contents: read
1012
uses: Cysharp/Actions/.github/workflows/prevent-github-change.yaml@main

.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

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ on:
66
- 'README.md'
77

88
jobs:
9-
generateTOC:
10-
name: TOC Generator
9+
toc:
10+
permissions:
11+
contents: write
1112
uses: Cysharp/Actions/.github/workflows/toc-generator.yaml@main
1213
with:
1314
TOC_TITLE: "## Table of Contents"

0 commit comments

Comments
 (0)