Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-License-Identifier: MPL-2.0
# // Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
#
# CodeQL scan configuration for statistikles.
#
# WHY THIS FILE EXISTS
# --------------------
# statistikles is a Julia package with Agda proofs and a Zig FFI shim. CodeQL
# supports none of those three languages, so the only thing here it *can*
# analyse is JavaScript. The repository contains exactly one JavaScript file:
#
# .claude/workflows/prod-readiness.js (agent harness, ~100 lines)
#
# The CodeQL JavaScript extractor skips dot-directories by default, so with no
# configuration it extracted zero files and the run died with
#
# "CodeQL detected code written in JavaScript/TypeScript but could not
# process any of it" (exit 32, configuration error)
#
# — i.e. the scan was failing *because it had nothing to look at*, not because
# it found a problem. Naming the directory explicitly below gives the extractor
# a real file, so the job either passes having actually analysed something or
# fails on a genuine finding.
#
# HONEST SCOPE
# ------------
# This covers the agent harness, NOT the statistical code that is the point of
# this project. A green CodeQL badge here means "the one JS file is clean"; it
# says nothing about src/**/*.jl. The real correctness gates are the Julia test
# suite (.github/workflows/e2e.yml) and `agda --safe` (.github/workflows/agda.yml).

name: "statistikles CodeQL config"

# Explicit include — required to reach a dot-directory the extractor would
# otherwise skip. Extend this list if shipped JavaScript is ever added.
paths:
- .claude/workflows

paths-ignore:
# Build/interface artefacts that carry no reviewable source.
- "**/_build"
- "**/*.agdai"
108 changes: 0 additions & 108 deletions .github/workflows/casket-pages.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# Without this the extractor skips .claude/ (dot-directory), finds no
# JavaScript at all, and the run fails with exit 32 "could not process
# any of it". See .github/codeql/codeql-config.yml for the full why.
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
# // Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
name: GitHub Pages (Ddraig SSG)
on:
push:
Expand Down
Loading