Skip to content

Commit 437d00d

Browse files
infinisilzowoq
andcommitted
workflows/check-by-name: Make runnable without approval
Co-Authored-By: zowoq <59103226+zowoq@users.noreply.github.com>
1 parent d1ec027 commit 437d00d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/check-by-name.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
name: Check pkgs/by-name
44

55
# The pre-built tool is fetched from a channel,
6-
# making it work predictable on all PRs
7-
on: pull_request
6+
# making it work predictable on all PRs.
7+
on:
8+
# Using pull_request_target instead of pull_request avoids having to approve first time contributors
9+
pull_request_target
810

911
# The tool doesn't need any permissions, it only outputs success or not based on the checkout
1012
permissions: {}
@@ -16,6 +18,9 @@ jobs:
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@v4
21+
with:
22+
# pull_request_target checks out the base branch by default
23+
ref: refs/pull/${{ github.event.pull_request.number }}/merge
1924
- uses: cachix/install-nix-action@v23
2025
- name: Determining channel to use for dependencies
2126
run: |

0 commit comments

Comments
 (0)