From 1d5da7dc87cb642613920252a17102e3ef51d519 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Tue, 14 Apr 2026 10:48:13 +0200 Subject: [PATCH 1/3] fix --- .github/workflows/trl-ci-bot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trl-ci-bot.yml b/.github/workflows/trl-ci-bot.yml index c55c440fff11..851f90a8bfcd 100644 --- a/.github/workflows/trl-ci-bot.yml +++ b/.github/workflows/trl-ci-bot.yml @@ -33,8 +33,8 @@ jobs: - name: Ignore untrusted commenter if: steps.trust.outputs.trusted != 'true' run: | - echo "Untrusted commenter; ignoring." - exit 0 + echo "Untrusted commenter; stop." + exit 1 - name: Fetch PR head SHA + number id: pr From 179bbb88d7fa671b418c4ee29772e7b186d4d499 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Tue, 14 Apr 2026 11:42:08 +0200 Subject: [PATCH 2/3] fix --- .github/workflows/trl-ci-bot.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trl-ci-bot.yml b/.github/workflows/trl-ci-bot.yml index 851f90a8bfcd..38619233667f 100644 --- a/.github/workflows/trl-ci-bot.yml +++ b/.github/workflows/trl-ci-bot.yml @@ -33,10 +33,11 @@ jobs: - name: Ignore untrusted commenter if: steps.trust.outputs.trusted != 'true' run: | - echo "Untrusted commenter; stop." - exit 1 + echo "Untrusted commenter; ignoring." + exit 0 - name: Fetch PR head SHA + number + if: steps.trust.outputs.trusted == 'true' id: pr env: GH_TOKEN: ${{ github.token }} @@ -48,6 +49,7 @@ jobs: echo "number=$number" >> $GITHUB_OUTPUT - name: Dispatch TRL workflow + if: steps.trust.outputs.trusted == 'true' id: dispatch env: GH_TOKEN: ${{ secrets.TRL_CI_DISPATCH_TOKEN }} @@ -57,6 +59,7 @@ jobs: -f transformers_ref=${{ steps.pr.outputs.sha }} - name: Find TRL workflow run URL + if: steps.trust.outputs.trusted == 'true' id: find_run env: GH_TOKEN: ${{ secrets.TRL_CI_DISPATCH_TOKEN }} @@ -82,6 +85,7 @@ jobs: done - name: Comment back on PR with link + if: steps.trust.outputs.trusted == 'true' env: GH_TOKEN: ${{ github.token }} run: | From 7137f9cc32940e3e09b23542b2c8cd2fbb5d5069 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Tue, 14 Apr 2026 11:43:22 +0200 Subject: [PATCH 3/3] fix --- .github/workflows/trl-ci-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trl-ci-bot.yml b/.github/workflows/trl-ci-bot.yml index 38619233667f..67b5632684e8 100644 --- a/.github/workflows/trl-ci-bot.yml +++ b/.github/workflows/trl-ci-bot.yml @@ -33,7 +33,7 @@ jobs: - name: Ignore untrusted commenter if: steps.trust.outputs.trusted != 'true' run: | - echo "Untrusted commenter; ignoring." + echo "Untrusted commenter, stop the workflow!" exit 0 - name: Fetch PR head SHA + number