Skip to content

Commit

Permalink
use pull_request_target for workflow needing secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
miaucl committed Feb 15, 2024
1 parent 57c4469 commit 8974722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test

on: [ push, pull_request, workflow_dispatch ]
on: [ push, pull_request_target ]

env:
DEFAULT_PYTHON: "3.12"
Expand All @@ -26,7 +26,7 @@ jobs:
exit 1
- uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
Expand Down

0 comments on commit 8974722

Please sign in to comment.