Skip to content

About

Enable code scanning and secure your code with CodeQL.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

99 Commits

Folders and files

Repository files navigation

Native C++20 CodeQL Book Store

The active application is now a native Windows C++20 HTTP book catalogue. It uses MSVC, CMake and WinSock2, with no Python, Flask, pip, SQLite runtime, JavaScript Actions, container or interpreter dependency.

Build and validate

Requirements: Windows, Visual Studio 2026 C++ tools, CMake 4.2 or newer, and PowerShell 7.

Run from this repository's root:

pwsh -NoLogo -NoProfile -NonInteractive -File ci/Invoke-NativePipeline.ps1 -RepositoryRoot . -OutputDirectory "$env:TEMP\swe-bookstore-build"

The workflow uses native Release /O2, one MSBuild worker with node reuse disabled, SHA-256 HEAD and TAIL source checks, CTest, an out-of-tree build-guard regression, and HTTP smoke tests including a slow-header client. The server imposes a five-second absolute header deadline and returns Allow: GET on HTTP 405 replies. On compilation or test failure, release stays HOLD.

To launch the program:

& "$env:TEMP\swe-bookstore-build\Release\bookstore.exe" --port 8080

The only listening address is 127.0.0.1. The app serves the five seeded books from an immutable in-memory array and supports:

The HTTP implementation is intentionally small and single-threaded. It is a local demonstration server, not a production internet service. The original SQL storage has not been reproduced as a persistent database; there are no stored edits or migrations.

Active native pipelines

  1. Native C++20 MSVC build, CTest, and HTTP verification: .github/workflows/native-cxx20.yml
  2. CodeQL 2.27.5 C++ security-and-quality suite: .github/workflows/codeql-cxx20.yml

The CodeQL workflow downloads GitHub's official Windows bundle pinned by SHA-256, runs the C++ CLI extractor during a real native build, validates SARIF 2.1.0, and fails on any reported security or quality finding. This local C++ CodeQL quality gate is enforced independently of GitHub Code Scanning publication. No third-party GitHub Actions are executed.

GitHub's managed CodeQL default setup is currently enabled on the fork. GitHub rejects SARIF from a simultaneous custom advanced setup, so publication is explicitly on HOLD by default. Passing the local gate does not mean the SARIF was ingested, and the job summary says so. After a repository administrator disables CodeQL default setup, they may set the Actions repository variable CODEQL_SARIF_PUBLISH to true to opt into GitHub Code Scanning publication. When enabled, the uploader provides the temporary-root checkout_uri and polls until the SARIF processing status becomes complete; it fails on errors or timeouts.

The CodeQL CLI is an external analysis tool with its own upstream terms, not part of the 0BSD C++ application.

Atomix automatic integrity gate

Native Windows C++20 CI now runs a local-only Atomix / Pinoy Half-Phiping test gate before configuration, build and CodeQL C++ extraction. See the frozen Atomix TRIFORCE protocol and the source script.

The gate checks the actual Q62 Euler, Pi and intensity records derived from pentagonal-xor-cpp20 PR #34. Every local phase (HEAD, AIRGAP MagicComb and TAIL) recomputes all three witnesses and checks paired SHA-256 source custody. Each synthetic Unicode SARIF 2.1.0 string trial applies exactly one reversible XOR bit in a fresh in-memory copy and preserves an out-of-tree SHA-256 audit. The phase-varying corpus is deliberately deterministic; this is a restrained proof of concept, not the entire unprovided historical Atomix volatility generator.

The AIRGAP is a logical validation boundary, not a physical airgap. A local probe pass does not establish a vulnerability or authorize any GitHub Code Scanning upload, upstream maintainer review, merge or release. The two repository contexts permitted for the exact-source workflow are the fork and skills/introduction-to-codeql; upstream workflow execution still requires a maintainer's explicit approval.

Academic research artifacts

  • SARIF as an untrusted boundary: an Atomix-only null-hypothesis investigation is the canonical, Git-tracked Harvard-style essay (research ID SARIF-ATOMIX-ESSAY-2026-11-22-v2).
  • In the user's working terminology, Atomix is the research goal; Pinoy Half-Phiping names the restrained investigation; one-bit XOR mutation is a minimal proof-of-concept on disposable, deliberately volatile Unicode strings. No Atomix experiment is claimed to have occurred.
  • Both CI workflows verify and index the document SHA-256 in the GitHub Actions job summary. The native HEAD/TAIL custody hash also includes this source document.
  • Fork PR #1 and upstream PR #78 share the branch's commit. The older upstream workflow run 44994683214 is immutable and cannot have files retroactively attached; consult this source-tracked artifact instead.

Previous exercise and licensing

The prior GitHub Skills Flask and SQLite lesson, its original automation, package manifests and media have been removed from the active working tree. Their complete source can still be inspected at the parent Git commit b93d82cc5c49492b2c6ab1c36240e62944a30c74, or through Git history.

Newly written C++ and CI code uses SPDX-0BSD (LICENSES/0BSD.txt). The original root LICENSE remains MIT to preserve the original GitHub Skills source licensing. No pre-existing material was silently relicensed.

All workflows are validation only. RELEASE=HOLD, with no automatic merge or publication.

About

Enable code scanning and secure your code with CodeQL.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages