Skip to content

Commit

Permalink
Finalize setup of CI permission check step
Browse files Browse the repository at this point in the history
  • Loading branch information
budak7273 committed Dec 13, 2024
1 parent 7a2e89d commit 50e9b34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 50e9b34

Please sign in to comment.