Skip to content

Commit 72cd528

Browse files
authored
Add permissions to yml (#3173)
### What problem does this PR solve? Add permissions to yml ### Type of change - [ ] Other (please describe): yml
1 parent baa6e02 commit 72cd528

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
tags:
1111
- 'v*.*.*' # normal release
1212

13+
permissions:
14+
contents: write
15+
actions: read
16+
checks: read
17+
statuses: read
18+
1319
# https://docs.github.com/en/actions/using-jobs/using-concurrency
1420
concurrency:
1521
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/slow_tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ on:
1414
- 'docs/**'
1515
- '*.md'
1616

17+
permissions:
18+
contents: read
19+
actions: read
20+
checks: write
21+
statuses: write
22+
1723
# https://docs.github.com/en/actions/using-jobs/using-concurrency
1824
concurrency:
1925
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ on:
1717
- 'docs/**'
1818
- '*.md'
1919

20+
permissions:
21+
contents: read
22+
actions: read
23+
checks: write
24+
statuses: write
25+
2026
# https://docs.github.com/en/actions/using-jobs/using-concurrency
2127
concurrency:
2228
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

0 commit comments

Comments
 (0)