Skip to content

Restore CodeQL coverage for the Swift menu helper #181

Closed

Description

@Muneer320

Problem

CodeQL default setup cannot autobuild packaging/macos/KlickyMenu.swift: Klicky builds this helper directly with swiftc, without an Xcode project/workspace or Swift package. The failed Swift configuration produces no results. The current default setup successfully scans Rust, Actions, JavaScript/TypeScript and Python; Swift is not covered.

Scope

  • Prepare an advanced CodeQL workflow that preserves all current language coverage and adds Swift with an explicit helper build on a hosted macOS runner.
  • Keep scanning jobs read-only except for the permission needed to upload security results. Do not run release, installation or deployment scripts as a build step.
  • Validate Swift extraction and analysis before replacing default setup. GitHub rejects advanced CodeQL result uploads while default setup is enabled, so coordinate the setting change with the reviewed workflow rather than disabling checks to make CI green.
  • Preserve weekly scanning, default-branch and PR coverage, and provide a rollback path.

Acceptance

  • The actual menu helper is extracted and analyzed successfully.
  • All currently scanned languages retain successful results.
  • PR comparison checks have current results, including Dependabot updates.
  • Default and advanced setups do not conflict or duplicate findings.
  • Any settings change and required-check transition is documented and verified.

References: compiled-language build options, default setup upload restrictions.

Completed validation

PR #182 is merged and advanced setup is active. All five production language analyses uploaded successfully on master, and the real Dependabot PR #185 passed all five analyses and its CodeQL comparison. Existing alert dismissals and branch-protection requirements are unchanged. Default setup is retired without duplicate active configurations.

Activity

  1. added
    macosmacOS-specific work
    testingValidation, regression tests and hardware qualification
    github_actionsPull requests that update GitHub Actions code
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    github_actionsPull requests that update GitHub Actions codemacosmacOS-specific worktestingValidation, regression tests and hardware qualification

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions