Skip to content

Commit 502f641

Browse files
authored
ci: explicit permissions on actions (#326)
1 parent f39668c commit 502f641

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/check-dist.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
- '**.md'
1717
workflow_dispatch:
1818

19+
permissions:
20+
contents: read
21+
actions: write
22+
1923
jobs:
2024
check-dist:
2125
runs-on: ubuntu-latest

.github/workflows/start.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ defaults:
1414
run:
1515
shell: bash
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
e2e: # make sure the action works on a clean machine without building
1922
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: # rebuild any PRs and main branch changes
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
defaults:
912
run:
1013
shell: bash

0 commit comments

Comments
 (0)