Skip to content

Commit 5573acb

Browse files
authored
ci: add explicit workflow permissions (#405)
1 parent e84878b commit 5573acb

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/pre-commit-update.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ env:
1010

1111
jobs:
1212
update-pre-commit-config:
13+
permissions:
14+
contents: write
15+
pull-requests: write
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Checkout repository

.github/workflows/python-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212

1313
jobs:
1414
build:
15+
permissions:
16+
contents: read
1517
name: Build distribution 📦
1618
runs-on: ubuntu-latest
1719
steps:

0 commit comments

Comments
 (0)