Skip to content

Commit 0c01fd5

Browse files
committed
ci: fix ghalint
1 parent a1fe258 commit 0c01fd5

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ on:
1212

1313
jobs:
1414
build-dotnet:
15-
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
runs-on: ubuntu-24.04
1618
timeout-minutes: 10
1719
steps:
1820
- uses: Cysharp/Actions/.github/actions/checkout@main

.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: ./src/ZLogger.Unity/Assets/ZLogger.Unity/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
- uses: Cysharp/Actions/.github/actions/checkout@main
@@ -44,6 +48,8 @@ jobs:
4448

4549
create-release:
4650
needs: [update-packagejson, build-dotnet]
51+
permissions:
52+
contents: write
4753
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
4854
with:
4955
commit-id: ${{ needs.update-packagejson.outputs.sha }}
@@ -56,6 +62,8 @@ jobs:
5662
cleanup:
5763
if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
5864
needs: [update-packagejson, build-dotnet]
65+
permissions:
66+
contents: write
5967
uses: Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
6068
with:
6169
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)