Skip to content

Commit 4f893b5

Browse files
committed
Add permissions for workflow
1 parent 4a00847 commit 4f893b5

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/shellcheck.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ on:
44
- push
55
- pull_request
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
sh-checker:
912
name: Code Analysis
1013
runs-on: ubuntu-latest
11-
14+
1215
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v4
15-
16-
- name: Run the sh-checker
17-
uses: luizm/action-sh-checker@master
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
SHELLCHECK_OPTS: -S warning
21-
SHFMT_OPTS: -s -i 4
22-
with:
23-
sh_checker_comment: true
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Run the sh-checker
20+
uses: luizm/action-sh-checker@master
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
SHELLCHECK_OPTS: -S warning
24+
SHFMT_OPTS: -s -i 4
25+
with:
26+
sh_checker_comment: true

0 commit comments

Comments
 (0)