Skip to content

Commit 8b3fc06

Browse files
authored
ci: Update permissions for workflow (#2923)
1 parent 130e178 commit 8b3fc06

9 files changed

+18
-11
lines changed

.github/workflows/benchmark.yml

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

1819
jobs:
1920
runBenchmark:

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: CI
22
env:
33
CI: true
4-
permissions: read-all
4+
permissions:
5+
contents: read
56
on:
67
pull_request:
78
push:

.github/workflows/codeql-analysis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ name: "CodeQL Analysis"
33
env:
44
CODEQL_ENABLE_EXPERIMENTAL_FEATURES : true # CodeQL support for Rust is experimental
55

6-
permissions: read-all
6+
permissions:
7+
contents: read
78

89
on:
910
pull_request:
1011
push:
1112
branches: [main]
12-
schedule:
13-
- cron: '0 0 * * *' # once in a day at 00:00
1413
workflow_dispatch:
1514

1615
jobs:

.github/workflows/fossa.yml

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

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

1011
jobs:
1112
fossa:

.github/workflows/integration_tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
pull_request:
66
types: [ labeled, synchronize, opened, reopened ]
77

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

1011
jobs:
1112
integration_tests:

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

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

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

1314
jobs:
1415
markdown-link-check:

.github/workflows/ossf-scorecard.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
- cron: "50 3 * * 0" # once a week
99
workflow_dispatch:
1010

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

1314
jobs:
1415
analysis:

.github/workflows/pr_naming.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened, edited]
66

7-
permissions: read-all
7+
permissions:
8+
contents: read
89

910
jobs:
1011
validate-pr-title:

.github/workflows/semver.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Semver compliance
22
env:
33
CI: true
4-
permissions: read-all
4+
permissions:
5+
contents: read
56
on:
67
pull_request:
78
types: [ labeled, synchronize, opened, reopened ]

0 commit comments

Comments
 (0)