Skip to content

Commit 0bf49ae

Browse files
committed
ci: fix ghalint
1 parent e8222ee commit 0bf49ae

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
max-parallel: 2
1717
matrix:
1818
unity: ["2021.3.41f1", "2022.3.39f1", "6000.0.12f1"] # Test with LTS
19-
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
runs-on: ubuntu-24.04
2022
timeout-minutes: 15
2123
steps:
2224
- name: Load secrets
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: ./RuntimeUnitTestToolkit/Assets/RuntimeUnitTestToolkit/package.json
@@ -26,7 +28,9 @@ jobs:
2628
strategy:
2729
matrix:
2830
unity: ["2022.3.39f1"]
29-
runs-on: ubuntu-latest
31+
permissions:
32+
contents: read
33+
runs-on: ubuntu-24.04
3034
timeout-minutes: 15
3135
steps:
3236
- name: Load secrets
@@ -72,6 +76,8 @@ jobs:
7276
# release
7377
create-release:
7478
needs: [update-packagejson, build-unity]
79+
permissions:
80+
contents: write
7581
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
7682
with:
7783
commit-id: ${{ needs.update-packagejson.outputs.sha }}
@@ -85,6 +91,8 @@ jobs:
8591
cleanup:
8692
if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
8793
needs: [update-packagejson, build-unity]
94+
permissions:
95+
contents: write
8896
uses: Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
8997
with:
9098
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
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)