Skip to content

Commit 59924ba

Browse files
committed
Set minimal permissions for GH Actions
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent 682b946 commit 59924ba

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/black-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
pull_request:
1010
branches: [main]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
check:
1417
runs-on: ubuntu-22.04

.github/workflows/black-format.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Automatically format with Black and submit PR
22

3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
37
on:
48
push:
59
branches:

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
pull_request:
1010
branches: [main]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
python_version:
1417
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)