Skip to content

Commit 57dcdfd

Browse files
committed
fix: github flow fail issue
1 parent ef269ee commit 57dcdfd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/label-hacktoberfest.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Label Hacktoberfest PRs
22

33
on:
4-
pull_request:
5-
types: [opened, synchronize, reopened, edited]
4+
pull_request_target:
5+
types: [opened, reopened, edited]
66

77
permissions:
88
pull-requests: write
@@ -14,8 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Check out the repository
17+
- name: Check out PR code (safe)
1818
uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
1921

2022
- name: Get linked issue number from PR body
2123
id: issue-number

0 commit comments

Comments
 (0)