From 20a810b0513da1761a18b99608ac128505a351f0 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Wed, 29 Jan 2025 13:15:38 +0100 Subject: [PATCH] Add repository input See https://github.com/tj-actions/changed-files/blob/065e671731666959f9ea1bbbb7ddb8363a8ae9cd/src/commitSha.ts#L612-L621 --- .github/workflows/comment-on-asciidoc-changes.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/comment-on-asciidoc-changes.yml b/.github/workflows/comment-on-asciidoc-changes.yml index 7f6114378..73b90e8d3 100644 --- a/.github/workflows/comment-on-asciidoc-changes.yml +++ b/.github/workflows/comment-on-asciidoc-changes.yml @@ -19,6 +19,9 @@ jobs: # However, we are not running any code from the PR, so it's safe # https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/ ref: ${{ github.event.pull_request.head.sha }} + # This is needed when the action is run in a fork PR + # according to https://github.com/tj-actions/changed-files/blob/065e671731666959f9ea1bbbb7ddb8363a8ae9cd/src/commitSha.ts#L612-L621 + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Get changed files id: check-files