Skip to content
/ noc Public

Commit 0069c32

Browse files
authored
GitHub workflow permissions (#39)
1 parent 1ff999a commit 0069c32

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

.github/workflows/build-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
paths: *on-paths
1717
release:
1818
types: ["published"]
19+
permissions:
20+
contents: write
21+
pull-requests: write
1922
jobs:
2023
build-push:
2124
name: "Build & Push Docs"

.github/workflows/codeql.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: "CodeQL Scan"
2-
32
on:
43
# @todo: Maybe too expensive, uncomment after fine tuning
54
# push:
@@ -8,7 +7,9 @@ on:
87
# branches: [ "master" ]
98
schedule:
109
- cron: "34 20 * * *"
11-
10+
permissions:
11+
contents: read
12+
pull-requests: write
1213
jobs:
1314
analyze:
1415
name: Analyze (${{ matrix.language }})

.github/workflows/infra-image.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- tests/infra/docker/**
88
pull_request:
99
paths: *changed-paths
10+
permissions:
11+
contents: read
12+
pull-requests: write
1013
jobs:
1114
changes:
1215
runs-on: ubuntu-24.04

.github/workflows/js-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
paths: *changed-paths
1313
release:
1414
types: ["published"]
15+
permissions:
16+
contents: read
17+
pull-requests: write
1518
jobs:
1619
js-lint:
1720
runs-on: ubuntu-24.04

.github/workflows/py-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
paths: *changed-paths
1616
release:
1717
types: ["published"]
18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
packages: read
1822
jobs:
1923
py-lint:
2024
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)