From 6995f23d7d1046f1642a18bf4b20c12f94bd5279 Mon Sep 17 00:00:00 2001 From: AJAY JAGANATHAN Date: Fri, 11 Oct 2024 11:38:35 +0530 Subject: [PATCH] (fix): Change on trigger event to `pull_request_target` in 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-file-updates.yaml b/.github/workflows/check-file-updates.yaml index b6b7f0f1fee..bf142941ecb 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: @@ -9,6 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - name: Generate files id: generate-files run: |