Skip to content

Commit 89cb9ab

Browse files
authored
refactor(workflow): Update comments for clarity and remove unnecessary checkout ref (#2435)
Signed-off-by: Ntege Daniel <danientege785@gmail.com>
1 parent 1de57e3 commit 89cb9ab

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/bot-pr-missing-linked-issue.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow checks PRs for missing linked issues and posts reminder comments when needed.
2-
# Uses pull_request_target to enable write permissions for fork PRs while checking out
3-
# only the base branch code (ref: main) to avoid executing untrusted fork code.
2+
# Uses pull_request_target to enable write permissions for fork PRs while relying
3+
# on the trusted base-branch checkout to avoid executing untrusted fork code.
44
name: PR Missing Linked Issue Reminder
55

66
on:
@@ -39,8 +39,6 @@ jobs:
3939

4040
- name: Checkout repository
4141
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
42-
with:
43-
ref: ${{ github.event.pull_request.base.sha || github.sha }}
4442

4543
- name: Check PR for missing linked issue
4644
env:

0 commit comments

Comments
 (0)