We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1ec027 commit 437d00dCopy full SHA for 437d00d
1 file changed
.github/workflows/check-by-name.yml
@@ -3,8 +3,10 @@
3
name: Check pkgs/by-name
4
5
# The pre-built tool is fetched from a channel,
6
-# making it work predictable on all PRs
7
-on: pull_request
+# making it work predictable on all PRs.
+on:
8
+ # Using pull_request_target instead of pull_request avoids having to approve first time contributors
9
+ pull_request_target
10
11
# The tool doesn't need any permissions, it only outputs success or not based on the checkout
12
permissions: {}
@@ -16,6 +18,9 @@ jobs:
16
18
runs-on: ubuntu-latest
17
19
steps:
20
- 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
24
- uses: cachix/install-nix-action@v23
25
- name: Determining channel to use for dependencies
26
run: |
0 commit comments