Skip to content

Commit 7e0472b

Browse files
authored
ci: scope down GitHub Token permissions (#1112)
* ci: scope down permissions for pypi-release.yaml * ci: scope down permissions for schema-updater.yaml * ci: scope down permissions for pr-ci.yaml
1 parent 5d6d3ab commit 7e0472b

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/pr-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: CloudFormation CLI Pull Request CI
44

55
on: [push, pull_request]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
env:

.github/workflows/pypi-release.yaml

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

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

.github/workflows/schema-updater.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ on:
22
schedule:
33
- cron: '0 0 * * *'
44
workflow_dispatch: # Enables on-demand/manual triggering: https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
59
jobs:
610
schema-updater:
711
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)