Skip to content

Commit 4f2aba6

Browse files
Fix reviewdog perms (kroxylicious#2980)
* fix reviewdog perms Signed-off-by: Grace Grimwood <[email protected]> * move perms block to whole job level Signed-off-by: Grace Grimwood <[email protected]> * fix shellcheck flags Signed-off-by: Grace Grimwood <[email protected]> --------- Signed-off-by: Grace Grimwood <[email protected]>
1 parent 7f25029 commit 4f2aba6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/lint.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ concurrency:
2929
jobs:
3030
lint:
3131
runs-on: ubuntu-latest
32-
32+
permissions:
33+
contents: read
34+
pull-requests: write
35+
checks: write
3336
steps:
3437
- name: 'Check out repository'
3538
uses: actions/checkout@v6
@@ -64,7 +67,7 @@ jobs:
6467
"./.git/*"
6568
"**/target"
6669
check_all_files_with_shebangs: "false" # Optional.
67-
shellcheck_flags: "--external-sources --severity=Error"
70+
shellcheck_flags: "--external-sources --severity=error"
6871
- name: Save PR number to file
6972
if: github.event_name == 'pull_request'
7073
run: echo ${{ github.event.number }} > PR_NUMBER.txt

0 commit comments

Comments
 (0)