Skip to content

Commit da5fffe

Browse files
security: add permissions block to workflows (#1526)
Co-authored-by: obltmachine <obltmachine@users.noreply.github.com>
1 parent f4a5240 commit da5fffe

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- "tests/**"
1313
- "pyproject.toml"
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
test:
1720
name: pytest

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
permissions:
9+
contents: read
10+
811
jobs:
912
lint-workflows:
1013
name: Validate GitHub Actions workflows

.github/workflows/smoke-test-install.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: "0 6 * * *" # Daily at 06:00 UTC
66
workflow_dispatch:
77

8+
permissions:
9+
contents: none
10+
811
jobs:
912
smoke-test:
1013
name: Install and compile all workflows

0 commit comments

Comments
 (0)