Skip to content

Commit 160ea98

Browse files
committed
Default github workflow permission read-all
1 parent 0c62fd1 commit 160ea98

10 files changed

+30
-0
lines changed

.github/workflows/benchmark.yml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- main
66
workflow_dispatch:
77

8+
# Declare default permissions as read only.
9+
permissions: read-all
10+
811
env:
912
DEFAULT_GO_VERSION: "~1.23.0"
1013
jobs:

.github/workflows/changelog.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
types: [opened, synchronize, reopened, labeled, unlabeled]
1111
branches:
1212
- main
13+
14+
# Declare default permissions as read only.
15+
permissions: read-all
16+
1317
jobs:
1418
changelog:
1519
runs-on: ubuntu-latest

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ env:
1313
# explicitly test our code for these versions so keeping this at prior
1414
# versions does not add value.
1515
DEFAULT_GO_VERSION: "~1.23.0"
16+
# Declare default permissions as read only.
17+
permissions: read-all
1618
jobs:
1719
lint:
1820
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
branches: [ main ]
1818
pull_request:
1919

20+
# Declare default permissions as read only.
21+
permissions: read-all
22+
2023
jobs:
2124
CodeQL-Build:
2225
runs-on: ubuntu-latest

.github/workflows/codespell.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- main
66
pull_request:
7+
# Declare default permissions as read only.
8+
permissions: read-all
79
jobs:
810
codespell:
911
runs-on: ubuntu-latest

.github/workflows/links-fail-fast.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request:
88

9+
# Declare default permissions as read only.
10+
permissions: read-all
11+
912
jobs:
1013
check-links:
1114
runs-on: ubuntu-latest

.github/workflows/links.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Everyday at 9:00 AM.
88
- cron: "0 9 * * *"
99

10+
# Declare default permissions as read only.
11+
permissions: read-all
12+
1013
jobs:
1114
check-links:
1215
runs-on: ubuntu-latest

.github/workflows/markdown-fail-fast.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
# Declare default permissions as read only.
8+
permissions: read-all
9+
710
jobs:
811
changedfiles:
912
name: changed files

.github/workflows/markdown.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Everyday at 9:00 AM.
88
- cron: "0 9 * * *"
99

10+
# Declare default permissions as read only.
11+
permissions: read-all
12+
1013
jobs:
1114
lint-markdown:
1215
runs-on: ubuntu-latest

.github/workflows/protect-released-changelog.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ name: Protect released changelog
77
on:
88
pull_request:
99
types: [opened, synchronize, reopened, labeled, unlabeled]
10+
11+
# Declare default permissions as read only.
12+
permissions: read-all
13+
1014
jobs:
1115
protect-released-changelog:
1216
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)