From 0a7cbef3ef41d3a3a39a4a46df7e56e3fd832855 Mon Sep 17 00:00:00 2001 From: AJAY JAGANATHAN Date: Fri, 11 Oct 2024 11:38:35 +0530 Subject: [PATCH] (fix): Add pr_number to the "Check config and readme updates / Ensure generated files are included (pull_request)" action to fix "Resource not accessible by integration" error while running the action Signed-off-by: AJAY JAGANATHAN --- .github/workflows/check-file-updates.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-file-updates.yaml b/.github/workflows/check-file-updates.yaml index b6b7f0f1fee..89a9e03e71b 100644 --- a/.github/workflows/check-file-updates.yaml +++ b/.github/workflows/check-file-updates.yaml @@ -1,6 +1,6 @@ name: Check config and readme updates on: - pull_request: + pull_request_target: jobs: file-updates: permissions: @@ -37,6 +37,7 @@ jobs: Please run `${{ steps.generate-files.outputs.CMD }}` and commit the changes. For more info: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + pr_number: ${{github.event.number}} - name: Print git status and fail pr if: ${{ steps.check_generated_files.outputs.missing_generated_files == 'true' }} run: |