From ca3c19db1dfaddd3ccf159d40b766db08ebe1a7a Mon Sep 17 00:00:00 2001 From: Antti Riikonen Date: Tue, 26 Nov 2024 16:03:52 +0200 Subject: [PATCH] Don't search forks for build artifacts --- .github/workflows/post-spell-check-result.yml | 3 +++ .github/workflows/test_labeler.yml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/post-spell-check-result.yml b/.github/workflows/post-spell-check-result.yml index f8b321db0ceed..fd10302d959a9 100644 --- a/.github/workflows/post-spell-check-result.yml +++ b/.github/workflows/post-spell-check-result.yml @@ -21,12 +21,14 @@ jobs: workflow: ${{ github.event.workflow_run.name }} run_id: ${{ github.event.workflow_run.id }} name: pull_request_id + allow_forks: false - name: Download spell check retcode artifact uses: dawidd6/action-download-artifact@v3.1.4 with: workflow: ${{ github.event.workflow_run.name }} run_id: ${{ github.event.workflow_run.id }} name: spell_check_retcode + allow_forks: false - name: set-spell-check-retcode id: set-spell-check-retcode run: echo "spell-check-retcode=$( cat spell_check_retcode )" >> $GITHUB_OUTPUT @@ -37,6 +39,7 @@ jobs: workflow: ${{ github.event.workflow_run.name }} run_id: ${{ github.event.workflow_run.id }} name: spell_check_output + allow_forks: false - name: 'Comment on PR' if: steps.set-spell-check-retcode.outputs.spell-check-retcode >= 1 uses: actions/github-script@v7 diff --git a/.github/workflows/test_labeler.yml b/.github/workflows/test_labeler.yml index b4d34ba6b3e0b..d6171ee58db18 100644 --- a/.github/workflows/test_labeler.yml +++ b/.github/workflows/test_labeler.yml @@ -29,6 +29,7 @@ jobs: workflow: ${{ github.event.workflow_run.name }} run_id: ${{ github.event.workflow_run.id }} name: basic-build + allow_forks: false - name: set-basic-build-success id: set-basic-build-success run: echo "basic-build-success=$( cat basic-build )" >> $GITHUB_OUTPUT @@ -38,6 +39,7 @@ jobs: workflow: ${{ github.event.workflow_run.name }} run_id: ${{ github.event.workflow_run.id }} name: pull_request_id + allow_forks: false - name: set-pr-id id: set-pr-id run: echo "pr-id=$( cat pull_request_id )" >> $GITHUB_OUTPUT