From c1910c8778cf1d530c0f052663514de29850a6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=AE=E9=9B=A8?= <47820304+PeterGuy326@users.noreply.github.com> Date: Fri, 11 Sep 2026 11:35:42 +0800 Subject: [PATCH] ci(security): run CodeQL on fork pull requests The codeql job guard compared the head repository to the base repository, so it was false for every fork pull request and the job was skipped. GitHub does not evaluate a skipped job's name expression, so the skipped job published the raw string "CodeQL (${{ matrix.language }})" and matched none of the three required contexts CodeQL (go), CodeQL (javascript-typescript) and CodeQL (python). Deleting the guard leaves push, schedule, workflow_dispatch and same-repository pull_request runs unchanged: the guard was already true for all of them. Refs bytefolk/.github#35 --- .github/workflows/bytefolk-security.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/bytefolk-security.yml b/.github/workflows/bytefolk-security.yml index 88c2e66..c0226e7 100644 --- a/.github/workflows/bytefolk-security.yml +++ b/.github/workflows/bytefolk-security.yml @@ -33,7 +33,6 @@ jobs: codeql: name: CodeQL (${{ matrix.language }}) - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-24.04 timeout-minutes: 30 permissions: