6565            echo "should_run=true" >> "$GITHUB_OUTPUT" 
6666          else 
6767            echo "should_run=false" >> "$GITHUB_OUTPUT" 
68+             exit 1 ; 
6869          fi 
6970id : get_trigger_id 
70-         if : ${{ (steps.check.outputs.should_run == 'true') && success() }} 
71+         if : ${{ (github.repository == 'reactive-firewall-org/multicast') && ( steps.check.outputs.should_run == 'true') && success() }} 
7172        run : | 
7273          ID_VALUE=$(gh api "${{ github.event.workflow_run.url }}" --jq '.id') 
7374          if [[ -n "$ID_VALUE" ]]; then 
@@ -106,6 +107,8 @@ jobs:
106107          persist-credentials : false 
107108          ref : ${{ steps.load_build_info.outputs.build_sha }} 
108109          fetch-depth : 0 
110+           repository : reactive-firewall-org/multicast 
111+           token : ${{ env.GH_TOKEN }} 
109112      - name : " Queue MATs GitHub Check" 
110113        id : output_mats_check_id 
111114        uses : ./.github/actions/check-control 
@@ -118,10 +121,10 @@ jobs:
118121          workflow-run-id : ${{ steps.output_run_id.outputs.mats_id }} 
119122          details-url : ${{ steps.output_run_id.outputs.mats_url }} 
120123      - name : Checkout target commit 
121-         if : ${{ (steps.check.outputs.should_run == 'true') && success() }} 
124+         if : ${{ (github.repository == 'reactive-firewall-org/multicast') && ( steps.check.outputs.should_run == 'true') && success() }} 
122125        run : git checkout ${{ steps.load_build_info.outputs.build_sha }} 
123126      - id : get_env 
124-         if : ${{ (steps.check.outputs.should_run == 'true') && success() }} 
127+         if : ${{ (github.repository == 'reactive-firewall-org/multicast') && ( steps.check.outputs.should_run == 'true') && success() }} 
125128        run : | 
126129          echo "branch=$(git name-rev --name-only $(git log -1 --format=%H) | cut -d~ -f1-1)" >> "$GITHUB_OUTPUT" 
127130          echo "parent_sha=$(git merge-base $(git log -1 --format=%H) refs/remotes/origin/stable)" >> "$GITHUB_OUTPUT" 
0 commit comments