Skip to content

Commit ea6d951

Browse files
committed
ci: fix ghalint
1 parent 9e70e22 commit ea6d951

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

.github/workflows/build-debug.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
strategy:
1616
matrix:
1717
unity: ["2022.3.0f1", "6000.0.23f1"]
18-
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
runs-on: ubuntu-24.04
1921
timeout-minutes: 10
2022
steps:
2123
- name: Load secrets

.github/workflows/build-release.yml

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

1515
jobs:
1616
update-packagejson:
17+
permissions:
18+
actions: read
19+
contents: write
1720
uses: Cysharp/Actions/.github/workflows/update-packagejson.yaml@main
1821
with:
1922
file-path: ./src/CsprojModifier/Assets/CsprojModifier/package.json
@@ -26,7 +29,9 @@ jobs:
2629
strategy:
2730
matrix:
2831
unity: ["6000.0.23f1"]
29-
runs-on: ubuntu-latest
32+
permissions:
33+
actions: read
34+
runs-on: ubuntu-24.04
3035
timeout-minutes: 15
3136
steps:
3237
- name: Load secrets
@@ -74,6 +79,8 @@ jobs:
7479
# release
7580
create-release:
7681
needs: [update-packagejson, build-unity]
82+
permissions:
83+
contents: write
7784
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
7885
with:
7986
commit-id: ${{ needs.update-packagejson.outputs.sha }}
@@ -87,6 +94,8 @@ jobs:
8794
cleanup:
8895
if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
8996
needs: [update-packagejson, build-unity]
97+
permissions:
98+
actions: write
9099
uses: Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
91100
with:
92101
branch: ${{ needs.update-packagejson.outputs.branch-name }}

.github/workflows/prevent-github-change.yml

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

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

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)