ci(v3): duplicate permissions key prevents Build + Test workflow from running
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:
- Failed workflow run for the reviewed commit: GitHub reports
(Line: 19, Col: 1): 'permissions' is already definedand no jobs run. - Workflow source.
- The green macOS job in PR Checks (master) runs
go test -v ./...fromv2, so it does not compile the v3 Objective-C bridge or execute the new Darwin permission tests in #6144.
Reproduction:
- Inspect the workflow at the commit above and observe the duplicate top-level key.
- Open the linked failed run and its invalid-workflow annotation.
- 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: readpermissions. - 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, andTestMediaCaptureDecisionForUnknownWindow. - Verify the v3 build result reports the actual v3 job outcomes.
Source: wailsapp/wails