Skip to content

Commit 03b66ea

Browse files
committed
add workflow-wide permissions
1 parent 22b23ac commit 03b66ea

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- "main"
1111
- "hotfix-*"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build:
1518
strategy:
@@ -32,4 +35,4 @@ jobs:
3235
run: powershell -ExecutionPolicy Bypass -File fetch-source.ps1
3336
if: runner.os == 'Windows'
3437
- run: npm link
35-
- run: allure --version
38+
- run: allure --version

.github/workflows/npm-publish.yml

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

7+
permissions:
8+
contents: read
9+
710
jobs:
811

912
publish-npm:

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ on:
88
description: "The release version in <MAJOR>.<MINOR>.<PATCH> format"
99
required: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
triage:
1316
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
1419
steps:
1520
- name: "Check release version"
1621
run: |

0 commit comments

Comments
 (0)