Skip to content

Commit 19233bf

Browse files
committed
Add permissions section to lint workflows for Bash and Python
1 parent e4c7323 commit 19233bf

2 files changed

Lines changed: 23 additions & 17 deletions

File tree

.github/workflows/bash-lint.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
name: Bash Lint
22

3+
permissions:
4+
contents: read
5+
36
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
1013

1114
jobs:
12-
lint:
13-
runs-on: ubuntu-latest
15+
lint:
16+
runs-on: ubuntu-latest
1417

15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v2
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
1821

19-
- name: Install ShellCheck
20-
run: sudo apt-get install -y shellcheck
22+
- name: Install ShellCheck
23+
run: sudo apt-get install -y shellcheck
2124

22-
- name: Lint setup.sh
23-
run: shellcheck setup.sh
25+
- name: Lint setup.sh
26+
run: shellcheck setup.sh
2427

25-
- name: Lint OCR4Linux.sh
26-
run: shellcheck OCR4Linux.sh
28+
- name: Lint OCR4Linux.sh
29+
run: shellcheck OCR4Linux.sh

.github/workflows/python-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Python Lint
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:

0 commit comments

Comments
 (0)