Skip to content

Commit fe52100

Browse files
Use GITHUB_TOKEN instead of GH_TOKEN (#3110)
also use `pull_request_target` instead of `pull_request` for add to project action
1 parent 6e5d73f commit fe52100

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Add PR to Code Samples Changes project
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, edited, synchronize]
66
paths:
7-
- .code-samples.meilisearch.yaml
7+
- '.code-samples.meilisearch.yaml'
88

99
jobs:
1010
add-pr-to-project:
@@ -13,4 +13,4 @@ jobs:
1313
- uses: actions/add-to-project@f5473ace9aeee8b97717b281e26980aa5097023f
1414
with:
1515
project-url: https://github.com/orgs/meilisearch/projects/44
16-
github-token: ${{ secrets.GH_TOKEN }}
16+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/preview-info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened]
66

77
env:
8-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
8+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99
CURRENT_BRANCH: ${{ github.event.pull_request.head.ref }}
1010

1111
jobs:

0 commit comments

Comments
 (0)