Skip to content

Commit 381a6e3

Browse files
authored
ci: Add permissions to add PR review comments for reviewdog actions (#520)
This makes it easier to see what golangci-lint checks have failed.
1 parent 113f9db commit 381a6e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/checks.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
matrix:
7575
module: [api, common, .]
7676
fail-fast: false
77+
permissions:
78+
pull-requests: write
7779
steps:
7880
- name: Check out code
7981
uses: actions/checkout@v4
@@ -101,6 +103,8 @@ jobs:
101103

102104
lint-gha:
103105
runs-on: ubuntu-22.04
106+
permissions:
107+
pull-requests: write
104108
steps:
105109
- name: Check out code
106110
uses: actions/checkout@v4
@@ -138,7 +142,7 @@ jobs:
138142
uses: actions/cache@v4
139143
with:
140144
path: ~/.cache/pre-commit
141-
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
145+
key: pre-commit-3|${{ hashFiles('.pre-commit-config.yaml') }}
142146

143147
- name: Run pre-commit
144148
run: devbox run -- make pre-commit

0 commit comments

Comments
 (0)