Skip to content

Commit bd238a4

Browse files
committed
ci: fix ghalint
1 parent fed6d9f commit bd238a4

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

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

1212
jobs:
1313
build-dotnet:
14-
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
runs-on: ubuntu-24.04
1517
timeout-minutes: 10
1618
steps:
1719
- uses: Cysharp/Actions/.github/actions/checkout@main
@@ -25,7 +27,9 @@ jobs:
2527
fail-fast: false
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: 15
3034
steps:
3135
- name: Load secrets
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: |
@@ -24,7 +26,9 @@ jobs:
2426

2527
build-dotnet:
2628
needs: [update-packagejson]
27-
runs-on: ubuntu-latest
29+
permissions:
30+
contents: read
31+
runs-on: ubuntu-24.04
2832
timeout-minutes: 10
2933
steps:
3034
- run: echo ${{ needs.update-packagejson.outputs.sha }}
@@ -47,7 +51,9 @@ jobs:
4751
strategy:
4852
matrix:
4953
unity: ["2022.3.39f1"]
50-
runs-on: ubuntu-latest
54+
permissions:
55+
contents: read
56+
runs-on: ubuntu-24.04
5157
timeout-minutes: 15
5258
steps:
5359
- name: Load secrets
@@ -95,6 +101,8 @@ jobs:
95101
# release
96102
create-release:
97103
needs: [update-packagejson, build-dotnet, build-unity]
104+
permissions:
105+
contents: write
98106
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
99107
with:
100108
dry-run: ${{ inputs.dry-run }}
@@ -107,6 +115,8 @@ jobs:
107115
cleanup:
108116
if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
109117
needs: [update-packagejson, create-release]
118+
permissions:
119+
contents: write
110120
uses: Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
111121
with:
112122
branch: ${{ needs.update-packagejson.outputs.branch-name }}
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)