diff --git a/.github/workflows/no-channel.yml b/.github/workflows/no-channel.yml index 90c38f22c007b..623a011c6e730 100644 --- a/.github/workflows/no-channel.yml +++ b/.github/workflows/no-channel.yml @@ -1,18 +1,17 @@ name: "No channel PR" on: - pull_request: + pull_request_target: + # Re-run should be triggered when the base branch is updated, instead of silently failing + types: [opened, synchronize, reopened, edited] branches: - 'nixos-**' - 'nixpkgs-**' -permissions: - contents: read +permissions: {} jobs: fail: - permissions: - contents: none name: "This PR is is targeting a channel branch" runs-on: ubuntu-latest steps: