Skip to content

Commit b5d9f76

Browse files
authored
ci: scope down GitHub Token permissions (#570)
* ci: scope down permissions for repo-sync.yml * ci: scope down permissions for aws-lambda-java-serialization.yml * ci: scope down permissions for aws-lambda-java-events-sdk-transformer.yml * ci: scope down permissions for samples.yml * ci: scope down permissions for aws-lambda-java-log4j2.yml * ci: scope down permissions for aws-lambda-java-tests.yml * ci: scope down permissions for runtime-interface-client_pr.yml * ci: scope down permissions for aws-lambda-java-events.yml * ci: scope down permissions for aws-lambda-java-core.yml
1 parent da75c63 commit b5d9f76

9 files changed

+28
-0
lines changed

.github/workflows/aws-lambda-java-core.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'aws-lambda-java-core/**'
1515
- '.github/workflows/aws-lambda-java-core.yml'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922

.github/workflows/aws-lambda-java-events-sdk-transformer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'aws-lambda-java-events-sdk-transformer/**'
1515
- '.github/workflows/aws-lambda-java-events-sdk-transformer.yml'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922

.github/workflows/aws-lambda-java-events.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'aws-lambda-java-events/**'
1515
- '.github/workflows/aws-lambda-java-events.yml'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922

.github/workflows/aws-lambda-java-log4j2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'aws-lambda-java-log4j2/**'
1515
- '.github/workflows/aws-lambda-java-log4j2.yml'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922

.github/workflows/aws-lambda-java-serialization.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'aws-lambda-java-serialization/**'
1515
- '.github/workflows/aws-lambda-java-serialization.yml'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922

.github/workflows/aws-lambda-java-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'aws-lambda-java-tests/**'
1515
- '.github/workflows/aws-lambda-java-tests.yml'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922

.github/workflows/repo-sync.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- '.github/workflows/repo-sync.yml'
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
1216
jobs:
1317
repo-sync:
1418
name: Repo Sync

.github/workflows/runtime-interface-client_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- 'aws-lambda-java-runtime-interface-client/**'
1111
- '.github/workflows/runtime-interface-client_*.yml'
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417

1518
smoke-test:

.github/workflows/samples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'samples/**'
1515
- '.github/workflows/samples.yml'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)