From e6350e76b87fbd443fa4c183d4a2c8ffa02af2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Wed, 18 Dec 2024 12:20:23 +0100 Subject: [PATCH] chore(ci): allow external contribution in fast aws tests workflow --- .github/workflows/aws_tfhe_fast_tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aws_tfhe_fast_tests.yml b/.github/workflows/aws_tfhe_fast_tests.yml index 70fd1c7b01..c49aa69d4b 100644 --- a/.github/workflows/aws_tfhe_fast_tests.yml +++ b/.github/workflows/aws_tfhe_fast_tests.yml @@ -11,12 +11,13 @@ env: SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png SLACK_USERNAME: ${{ secrets.BOT_USERNAME }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} + IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} on: # Allows you to run this workflow manually from the Actions tab as an alternative. workflow_dispatch: pull_request: + pull_request_target: jobs: should-run: @@ -55,6 +56,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.FHE_ACTIONS_TOKEN }} + ref: ${{ github.event.pull_request.head.sha }} - name: Check for file changes id: changed-files @@ -157,6 +159,7 @@ jobs: with: persist-credentials: 'false' token: ${{ secrets.FHE_ACTIONS_TOKEN }} + ref: ${{ github.event.pull_request.head.sha }} - name: Install latest stable uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203