Skip to content

Commit 6aafd34

Browse files
authored
ci(workflows): assign explicit permissions (#392)
1 parent 9348c68 commit 6aafd34

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/auto-merge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ name: auto-merge
33
on:
44
pull_request_target:
55

6+
# No GITHUB_TOKEN permissions, as we use AUTOMERGE_TOKEN instead.
7+
permissions: {}
8+
69
jobs:
710
auto-merge:
811
uses: mdn/workflows/.github/workflows/auto-merge.yml@main
912
with:
10-
target-repo: 'mdn/todo-vue'
13+
target-repo: "mdn/todo-vue"
1114
secrets:
1215
GH_TOKEN: ${{ secrets.AUTOMERGE_TOKEN }}

.github/workflows/pr-test.yml

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

8+
# No GITHUB_TOKEN permissions, as we don't use it.
9+
permissions: {}
10+
811
jobs:
912
build-lint:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)