#6145·wails

ci(v3): duplicate permissions key prevents Build + Test workflow from running

Author: leaanthonyCreated Sep 20, 2026Updated Sep 27, 2026
LabelsBugv3

Found while reviewing #6144 at commit 1e583ab8f75c294caff9e9cd22d425da74ba7bf7.

The Build + Test v3 workflow is rejected before any jobs start because .github/workflows/build-and-test-v3.yml defines the top-level permissions mapping twice, at lines 3 and 19. This is already present on the PR base, master at 2a6be718d31977381d2a57cf40ad9ef1111099a7; it was not introduced by #6144.

Evidence:

Reproduction:

  1. Inspect the workflow at the commit above and observe the duplicate top-level key.
  2. Open the linked failed run and its invalid-workflow annotation.
  3. Compare the available PR checks with the jobs expected from Build + Test v3: the v3 Go tests, macOS API variants, and v3 aggregate result have not run.

Impact and priority:

High-priority CI bug: v3 changes can show green v2 checks while the v3 validation workflow never starts. Native macOS validation for #6144 remains outstanding. This is a bug fix and should remain outside the features-only v3.1.0 milestone/project.

A second syntax error is exposed once the duplicate key is removed: pull_request_review does not support a branches filter. actionlint v1.7.7 reports "branches" filter is not available for pull_request_review event. Remove that filter and retain the existing job-level github.base_ref == 'master' conditions.

Scope and acceptance criteria:

  • Remove the duplicate mapping while preserving the intended contents: read permissions.
  • Remove the unsupported review-event branch filter while retaining the job-level master restriction; validate the corrected workflow with actionlint.
  • Confirm GitHub accepts the workflow and starts the expected v3 jobs for an applicable pull request.
  • Run v3 macOS compilation and application-package tests against the commit to be merged for #6144, including TestCaptureDecision_Constants, TestStrictestCaptureDecision, TestCaptureDecisionFor, TestMediaCaptureDecision, and TestMediaCaptureDecisionForUnknownWindow.
  • Verify the v3 build result reports the actual v3 job outcomes.