Skip to content

Commit

Permalink
Use GITHUB_TOKEN instead of GH_TOKEN (#3110)
Browse files Browse the repository at this point in the history
also use `pull_request_target` instead of `pull_request` for add to project action
  • Loading branch information
guimachiavelli authored Jan 20, 2025
1 parent 6e5d73f commit fe52100
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code-sample-automation.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Add PR to Code Samples Changes project

on:
pull_request:
pull_request_target:
types: [opened, edited, synchronize]
paths:
- .code-samples.meilisearch.yaml
- '.code-samples.meilisearch.yaml'

jobs:
add-pr-to-project:
Expand All @@ -13,4 +13,4 @@ jobs:
- uses: actions/add-to-project@f5473ace9aeee8b97717b281e26980aa5097023f
with:
project-url: https://github.com/orgs/meilisearch/projects/44
github-token: ${{ secrets.GH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/preview-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [opened]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURRENT_BRANCH: ${{ github.event.pull_request.head.ref }}

jobs:
Expand Down

0 comments on commit fe52100

Please sign in to comment.