From 50e9b34412e42d544b816e047b49408f9100c73b Mon Sep 17 00:00:00 2001 From: Rob B Date: Thu, 12 Dec 2024 19:07:29 -0500 Subject: [PATCH] Finalize setup of CI permission check step --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7fa09d8b26..a0fc170a42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,8 +16,7 @@ jobs: - name: Check for permission to run CI env: GH_TOKEN: ${{ secrets.BOT_TOKEN }} - # Temporarily != to ensure it fails - if: ${{ env.GH_TOKEN != '' }} + if: ${{ env.GH_TOKEN == '' }} # https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions?tool=powershell#setting-an-error-message run: | Write-Output "::error title=External Contributor PR::Pull requests made by users not in the organization intentionally can't access the CI secrets. Don't worry about the CI failure, the team will build the project locally to test it out anyways."