diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c976c97a38..0492071f61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,7 @@ on: jobs: changed: runs-on: ubuntu-22.04 + # Required permissions permissions: pull-requests: read @@ -20,7 +21,10 @@ jobs: outputs: docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' }} code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' }} + steps: + - uses: actions/checkout@v4 + if: github.event_name != 'pull_request' - name: Check for file changes uses: dorny/paths-filter@v2 id: filter diff --git a/.github/workflows/photon-code-docs.yml b/.github/workflows/photon-code-docs.yml index ec8b94c01e..a1744543b8 100644 --- a/.github/workflows/photon-code-docs.yml +++ b/.github/workflows/photon-code-docs.yml @@ -31,6 +31,8 @@ jobs: docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' }} code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' }} steps: + - uses: actions/checkout@v4 + if: github.event_name != 'pull_request' - name: Check for file changes uses: dorny/paths-filter@v2 id: filter diff --git a/.github/workflows/photonvision-docs.yml b/.github/workflows/photonvision-docs.yml index 98a92ef1f1..43750083ce 100644 --- a/.github/workflows/photonvision-docs.yml +++ b/.github/workflows/photonvision-docs.yml @@ -21,6 +21,8 @@ jobs: docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' }} code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' }} steps: + - uses: actions/checkout@v4 + if: github.event_name != 'pull_request' - name: Check for file changes uses: dorny/paths-filter@v2 id: filter diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 40b8fff091..c20f9dcfc5 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -22,6 +22,8 @@ jobs: outputs: py: ${{ steps.filter.outputs.python == 'true' || steps.filter.outputs.workflow == 'true' }} steps: + - uses: actions/checkout@v4 + if: github.event_name != 'pull_request' - name: Check for file changes uses: dorny/paths-filter@v2 id: filter