Skip to content

Commit f56bd9b

Browse files
authored
ci: declare least-privilege permissions in workflows (#354)
1 parent b716cb3 commit f56bd9b

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/format-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Format checks
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
format-check:
811
name: FILE FORMAT

.github/workflows/link-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Link checks
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
link-check:
811
name: LINK checking

.github/workflows/spell-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Spelling checks
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
spelling-check:
811
name: SPELLING check

.github/workflows/trigger-contribute-site-netlify.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches: [main]
66

7+
permissions: {}
8+
79
jobs:
810
trigger:
911
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)