From 2097a7af33e9019cb017b79b3b4c20a3808db8ae 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check-file-updates.yaml b/.github/workflows/check-file-updates.yaml index b6b7f0f1fee..bbd4f0f6e24 100644 --- a/.github/workflows/check-file-updates.yaml +++ b/.github/workflows/check-file-updates.yaml @@ -5,6 +5,7 @@ jobs: file-updates: permissions: pull-requests: write + contents: write name: Ensure generated files are included runs-on: ubuntu-latest steps: @@ -37,6 +38,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: |