Skip to content

Commit 4949f12

Browse files
committed
ci: explicit permissions on actions
revoke pull_request_target
1 parent 1b676af commit 4949f12

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
name: Test / OS ${{ matrix.os }} / Python ${{ matrix.python-version }}

.github/workflows/conventional-commits.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- reopened
1717
- ready_for_review
1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
check-conventional-commits:
2124
runs-on: ubuntu-latest

.github/workflows/stale.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
schedule:
55
- cron: '0 0 * * *'
66

7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
712
jobs:
813
mark_stale:
914
name: Mark issues and PRs as Stale

0 commit comments

Comments
 (0)