Skip to content

Commit f7bc200

Browse files
ci: Add explicit permissions to GitHub Actions workflows (#607)
Co-authored-by: Minh Nguyen Cong <[email protected]>
1 parent 6a32aa5 commit f7bc200

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
push:
88
branches:
99
- main
10+
11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
build-and-test:
1216
runs-on: ${{ matrix.os }}

.github/workflows/releases.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
types:
1111
- released
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
notify:
1518
# This job can run on the latest Ubuntu

.github/workflows/semantic-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
pull-requests: read
12+
1013
jobs:
1114
main:
1215
name: Validate semantic PR title

.github/workflows/spell-check-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
types: [opened, synchronize, edited]
55
branches:
66
- main
7+
8+
permissions:
9+
contents: read
10+
711
jobs:
812
spellcheck-request-title:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)