From 373070f8b77cf2a01973601290a5cfc01d745764 Mon Sep 17 00:00:00 2001 From: 514sid Date: Thu, 23 Jul 2026 12:48:59 +0400 Subject: [PATCH] Skip List screens action check on fork pull requests pull_request runs triggered from forks don't receive repository secrets, so SCREENLY_API_TOKEN is empty and the 'screen list' integration check fails auth and exits 1 (unrelated to the PR's changes). Guard the job with an if condition so it only runs for same-repository pull requests, where the token is available. --- .github/workflows/actions.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index c233f295..c70af714 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -5,6 +5,10 @@ on: jobs: test-github-action-workflow: + # Secrets are not available to pull_request runs from forks, so the + # SCREENLY_API_TOKEN would be empty and `screen list` would fail auth. + # Only run this integration check for same-repository pull requests. + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest name: List screens steps: