Skip to content

Commit 672e44f

Browse files
Add permissions to workflows (#203)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent aa0674d commit 672e44f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/check.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
concurrency:
1111
group: check-${{ github.ref }}
1212
cancel-in-progress: true
13+
permissions:
14+
contents: read
1315
jobs:
1416
test:
1517
runs-on: ubuntu-latest

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Release to PyPI
22
on:
33
push:
44
tags: ["*"]
5+
permissions:
6+
contents: read
57
env:
68
dists-artifact-name: python-package-distributions
79
jobs:

0 commit comments

Comments
 (0)