Skip to content

Commit ecc2c78

Browse files
committed
add workflow-wide permissions
1 parent ab14314 commit ecc2c78

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ 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
1116
steps:
1217
- uses: toolmantim/release-drafter@v5.2.0
1318
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
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)