Skip to content

Commit bdaf8dd

Browse files
authored
Update GitHub Actions permissions (#511)
* Update GitHub Actions permissions * Only run on python 3.13 because of SAM issues
1 parent 1920608 commit bdaf8dd

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/branch-pr-release.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ on:
55
pull_request:
66
branches:
77
- main
8+
9+
permissions:
10+
contents: read
11+
812
jobs:
913
build:
1014
strategy:
1115
fail-fast: false
1216
matrix:
1317
os: [macos-latest, ubuntu-latest, windows-latest]
1418
runs-on: ${{ matrix.os }}
19+
permissions:
20+
contents: read
1521
steps:
1622
- name: Checkout
1723
uses: actions/checkout@v5
@@ -22,7 +28,7 @@ jobs:
2228
- name: Set up Python
2329
uses: actions/setup-python@v6
2430
with:
25-
python-version: "3.x"
31+
python-version: "3.13"
2632
- name: Setup NPM
2733
run: |
2834
npm install

.github/workflows/publish.yaml

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

7+
permissions:
8+
contents: read
9+
710
jobs:
811
deploy:
912
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1015
steps:
1116
- uses: actions/checkout@v5
1217
- uses: actions/setup-node@v5

.github/workflows/template-schema-updater.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ on:
33
schedule:
44
- cron: '0 */8 * * *'
55
workflow_dispatch: # Enables on-demand/manual triggering: https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
schema-updater:
812
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
916
steps:
1017
- uses: actions/checkout@v5
1118
- uses: actions/checkout@v5
@@ -15,7 +22,7 @@ jobs:
1522
ref: main
1623
- uses: actions/setup-python@v6
1724
with:
18-
python-version: '3.9'
25+
python-version: '3.13'
1926
- name: Install Poetry
2027
uses: snok/install-poetry@v1
2128
- run: |

0 commit comments

Comments
 (0)