Skip to content

Commit 3ffee7d

Browse files
authored
chore: Add permissions to all workflows (#113)
1 parent e6d19f5 commit 3ffee7d

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
ci:
1215
runs-on: ubuntu-latest

.github/workflows/pr_title.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
pull-requests: read
12+
1013
jobs:
1114
main:
1215
name: Validate PR title
@@ -41,7 +44,7 @@ jobs:
4144
# special "[WIP]" prefix to indicate this state. This will avoid the
4245
# validation of the PR title and the pull request checks remain pending.
4346
# Note that a second check will be reported if this is enabled.
44-
wip: true
47+
wip: false
4548
# When using "Squash and merge" on a PR with only one commit, GitHub
4649
# will suggest using that commit message instead of the PR title for the
4750
# merge commit, and it's easy to commit this by mistake. Enable this option

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
tags:
55
- "v*.*.*"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
publish:
912
name: Publish to npm

.github/workflows/regen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- cron: "0 8 * * *"
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
regen:
912
timeout-minutes: 30

.github/workflows/release_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
branches:
55
- main
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
release-please:
912
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)