summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2021-05-27 06:49:11 -0700
committerzowoq <59103226+zowoq@users.noreply.github.com>2021-06-02 19:02:51 +1000
commit0d2757302c75375dffe4dfec347d014559f7fcff (patch)
treec81b796498b4d11722d0c12b4fd8a6d6b7f16997
parent822266fdfd6cc59314cb2a24babcb27dced6427d (diff)
downloadnixpkgs-0d2757302c75375dffe4dfec347d014559f7fcff.tar
nixpkgs-0d2757302c75375dffe4dfec347d014559f7fcff.tar.gz
nixpkgs-0d2757302c75375dffe4dfec347d014559f7fcff.tar.bz2
nixpkgs-0d2757302c75375dffe4dfec347d014559f7fcff.tar.lz
nixpkgs-0d2757302c75375dffe4dfec347d014559f7fcff.tar.xz
nixpkgs-0d2757302c75375dffe4dfec347d014559f7fcff.tar.zst
nixpkgs-0d2757302c75375dffe4dfec347d014559f7fcff.zip
.github/workflows/nixos-manual.yml: add permisssions so action runs don't require approval
-rw-r--r--.github/workflows/nixos-manual.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/nixos-manual.yml b/.github/workflows/nixos-manual.yml
index 80ffc9c12be..2a1c1c29738 100644
--- a/.github/workflows/nixos-manual.yml
+++ b/.github/workflows/nixos-manual.yml
@@ -1,7 +1,9 @@
 name: NixOS manual checks
 
+permissions: read-all
+
 on:
-  pull_request:
+  pull_request_target:
     branches-ignore:
       - 'release-**'
     paths:
@@ -14,6 +16,9 @@ jobs:
     if: github.repository_owner == 'NixOS'
     steps:
     - uses: actions/checkout@v2
+      with:
+        # pull_request_target checks out the base branch by default
+        ref: refs/pull/${{ github.event.pull_request.number }}/merge
     - uses: cachix/install-nix-action@v12
     - name: Check DocBook files generated from Markdown are consistent
       run: |