Skip to content

Commit 6e93739

Browse files
committed
fix: grant permission to write issues
1 parent e331b8a commit 6e93739

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/size.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: size
22
on:
33
# this action will error unless run in a pr context
4-
pull_request_target:
5-
branches:
6-
- main
74
pull_request:
85
branches:
96
- main
@@ -21,14 +18,8 @@ jobs:
2118
contents: read
2219
steps:
2320
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
24-
if: github.event_name == 'pull_request'
2521
with:
2622
ref: ${{ github.event.pull_request.head.sha }}
27-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
28-
if: github.event_name == 'pull_request_target'
29-
with:
30-
ref: ${{ github.event.pull_request.head.ref }}
31-
repository: ${{ github.event.pull_request.head.repo.full_name }}
3223
- run: npm i -g --force corepack && corepack enable
3324
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
3425
with:
@@ -82,6 +73,7 @@ jobs:
8273
needs: [build-base, build-head]
8374
permissions:
8475
pull-requests: write
76+
issues: write
8577
strategy:
8678
matrix:
8779
package: [nuxi, nuxt-cli, create-nuxt-app]

0 commit comments

Comments
 (0)