Skip to content

Commit f521a16

Browse files
authored
Try to fix security issues on GitHub workflows (#4727)
1 parent fae6944 commit f521a16

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#
1212
name: "CodeQL"
1313

14+
permissions:
15+
contents: read
16+
security-events: write
17+
1418
on:
1519
push:
1620
branches: [ main ]

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Documentation
22

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

.github/workflows/greetings.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Greetings
22

3+
permissions:
4+
issues: read
5+
pull-requests: write
6+
37
on: [pull_request_target, issues]
48

59
jobs:

.github/workflows/readme.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
name: Ronbun
44

5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
59
on:
610
push:
711
branches:

.github/workflows/test-suite.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
name: Glotter
44

5+
permissions:
6+
contents: read
7+
58
on:
69
push:
710
branches: [ main ]

0 commit comments

Comments
 (0)