Skip to content

Commit 940ec23

Browse files
authored
ci: Harden GitHub Actions (#2911)
1 parent 9a0ffc4 commit 940ec23

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
branches:
1414
- main
1515
name: benchmark pull requests
16-
permissions:
17-
contents: read
16+
permissions: read-all
1817

1918
jobs:
2019
runBenchmark:

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22
env:
33
CI: true
4+
permissions: read-all
45
on:
56
pull_request:
67
push:

.github/workflows/fossa.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ on:
55
branches:
66
- main
77

8-
permissions:
9-
contents: read
8+
permissions: read-all
109

1110
jobs:
1211
fossa:

.github/workflows/integration_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
pull_request:
66
types: [ labeled, synchronize, opened, reopened ]
77

8+
permissions: read-all
9+
810
jobs:
911
integration_tests:
1012
runs-on: ubuntu-latest

.github/workflows/markdown-link-check.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
paths:
99
- '**/*.md'
1010

11-
permissions:
12-
contents: read
11+
permissions: read-all
1312

1413
jobs:
1514
markdown-link-check:

.github/workflows/pr_naming.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened, edited]
66

7+
permissions: read-all
8+
79
jobs:
810
validate-pr-title:
911
runs-on: ubuntu-latest

.github/workflows/semver.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Semver compliance
22
env:
33
CI: true
4+
permissions: read-all
45
on:
56
pull_request:
67
types: [ labeled, synchronize, opened, reopened ]

0 commit comments

Comments
 (0)