Skip to content

Commit 084a7c8

Browse files
authored
ci: scope down GitHub Token permissions (#1048)
* ci: scope down permissions for build-runtime.yml * ci: scope down permissions for format.yml * ci: scope down permissions for check-examples.yml * ci: scope down permissions for test-rie.yml * ci: scope down permissions for closed-issue-message.yml * ci: scope down permissions for build-integration-test.yml * ci: scope down permissions for build-extension.yml * ci: scope down permissions for check-docs.yml * ci: scope down permissions for build-events.yml
1 parent bfc73a6 commit 084a7c8

File tree

9 files changed

+27
-0
lines changed

9 files changed

+27
-0
lines changed

.github/workflows/build-events.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- "lambda-events/**"
1111
- "Cargo.toml"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build:
1518
runs-on: ubuntu-latest

.github/workflows/build-extension.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- 'Cargo.toml'
1717

1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
build-runtime:
2124
runs-on: ubuntu-latest

.github/workflows/build-integration-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
- 'lambda-extension/**'
1818
- 'Cargo.toml'
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
build-runtime:
2225
runs-on: ubuntu-latest

.github/workflows/build-runtime.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- 'lambda-http/**'
1616
- 'Cargo.toml'
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
build-runtime:
2023
runs-on: ubuntu-latest

.github/workflows/check-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
- 'lambda-extension/**'
2222
- 'Cargo.toml'
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
build-runtime:
2629
runs-on: ubuntu-latest

.github/workflows/check-examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check:
1013
runs-on: ubuntu-latest

.github/workflows/closed-issue-message.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Closed Issue Message
22
on:
33
issues:
44
types: [closed]
5+
permissions:
6+
issues: write
7+
58
jobs:
69
auto_comment:
710
runs-on: ubuntu-latest

.github/workflows/format.yml

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

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
fmt:
710
name: Cargo fmt

.github/workflows/test-rie.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
push:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test-rie:
1114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)