Skip to content

Commit 92d0ef4

Browse files
committed
ci: use correct on target
1 parent b648c89 commit 92d0ef4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/check-deno.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Deno
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- opened
77
- synchronize
@@ -10,14 +10,13 @@ jobs:
1010
check_deno:
1111
name: Ensure Deno types are in sync with the code
1212
runs-on: ubuntu-latest
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.DENO_GH_PAT }}
13+
permissions:
14+
contents: write
15+
pull-requests: write
1516

1617
steps:
1718
- name: Checkout Project
1819
uses: actions/checkout@v4
19-
with:
20-
token: ${{ secrets.DENO_GH_PAT }}
2120

2221
- name: Use Node.js v20
2322
uses: actions/setup-node@v4
@@ -29,3 +28,5 @@ jobs:
2928

3029
- name: Run Check Script
3130
run: node ./scripts/actions/report-deno-not-ran.mjs
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)