Skip to content

Commit 5833093

Browse files
authored
Add workflow-wide gh actions permissions (#875)
1 parent ab14314 commit 5833093

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
pytest-changes:
1013
name: Collect allure-pytest file changes

.github/workflows/release-drafter.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
update_draft_release:
1013
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
1117
steps:
1218
- uses: toolmantim/[email protected]
1319
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
release:
66
types: [published]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
deploy:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)