From b8be884354abe1e4bd1bcd8aa1b266acfcb7d813 Mon Sep 17 00:00:00 2001 From: Julien Stephan Date: Tue, 18 Aug 2026 18:22:48 +0200 Subject: [PATCH] workflows: fix invalid checkout input in pr-trigger The dispatch-triggers job passed `package_version` to actions/checkout, which is not a valid input. GitHub Actions silently ignored it and fell back to the default checkout, emitting an "Unexpected input(s)" warning such as: Warning: Unexpected input(s) 'package_version', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'ssh-user', 'persist-credentials', 'path', 'clean', 'filter', 'sparse-checkout', 'sparse-checkout-cone-mode', 'fetch-depth', 'fetch-tags', 'show-progress', 'lfs', 'submodules', 'set-safe-directory', 'github-server-url', 'allow-unsafe-pr-checkout'] Use the correct `ref` input to explicitly check out the PR head commit, which clears the warning and makes the intent explicit. This was working anyway, because the default ref is the merge commit (hence containing the correct files), so technically we could remove it completely. Let's keep it, so intent is clear. Also, we are now fetching pull request HEAD instead of the merge commit [1] [1]: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit Signed-off-by: Julien Stephan --- .github/workflows/pr-trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-trigger.yml b/.github/workflows/pr-trigger.yml index ebb55073..6bed3462 100644 --- a/.github/workflows/pr-trigger.yml +++ b/.github/workflows/pr-trigger.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - package_version: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.event.pull_request.head.sha }} - name: Dispatch build/test workflows for Trigger directives env: