Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
6d6d6a3
chore: capture the BootUI 2.6.0 fixtures and pin 0.11.0 to v2.6.0
ffroliva Dec 5, 2026
d5cc020
chore: flag blanket and unused suppressions
ffroliva Dec 5, 2026
3e49440
test: record the GitHub repositoryContext gap and pin the tool status…
ffroliva Dec 5, 2026
e416269
Merge Task 0.1 (BootUI 2.6.0 capture) into release/0.11.0
ffroliva Dec 5, 2026
b1c4345
chore: group Dependabot updates, add a cooldown and document the merg…
ffroliva Dec 5, 2026
504e8e9
fix: accept only a serialized http(s) origin in the cross-site check
ffroliva Dec 5, 2026
cda6f7c
fix: refuse same-site and malformed browser metadata on a write (Boot…
ffroliva Dec 5, 2026
cea62cd
test: name the ecosystem in each Dependabot assertion
ffroliva Dec 5, 2026
7b302a3
chore: keep the reasons on narrowed suppressions
ffroliva Dec 5, 2026
8aa4c60
test: pin fixed inactivity log texts and levels (work in progress)
ffroliva Dec 5, 2026
3621dcc
chore: restore the reasons on removed suppressions
ffroliva Dec 5, 2026
2a795c5
test: one condition per assert in the serialized-origin tests
ffroliva Dec 5, 2026
af89e1c
Merge branch 'chore/0.11.0-t0.5-ruff-suppressions' into release/0.11.0
ffroliva Dec 5, 2026
847bfad
Merge branch 'chore/0.11.0-t0.2-dependabot' into release/0.11.0
ffroliva Dec 5, 2026
13e76e6
fix: log inactivity with fixed texts (work in progress)
ffroliva Dec 5, 2026
1c6d4eb
ci: audit workflows online with zizmor on a schedule
ffroliva Dec 5, 2026
5918208
docs: record the inactivity log deviations
ffroliva Dec 5, 2026
97807f8
Merge branch 'chore/0.11.0-t0.3-zizmor' into release/0.11.0
ffroliva Dec 5, 2026
bc336e6
test: add trust-boundary property tests and state the reporting channel
ffroliva Dec 5, 2026
43e8221
test: pin a single record for an invalid SHARPIT_ENABLED
ffroliva Dec 5, 2026
8cdbbb6
Merge branch 'test/0.11.0-t0.7-fuzz-security' into release/0.11.0
ffroliva Dec 5, 2026
0280e47
fix: leave the SHARPIT_ENABLED warning out of the inactive count
ffroliva Dec 5, 2026
25e3ed5
test: port the silent deliberate disablement and tidy the inactivity …
ffroliva Dec 5, 2026
fdfa03d
ci: audit the Python and npm lock files for known vulnerabilities
ffroliva Dec 5, 2026
a10177c
ci: keep the workflow audit off pull request runs
ffroliva Dec 5, 2026
68946b4
Merge branch 'ci/0.11.0-t0.4-dependency-audit' into release/0.11.0
ffroliva Dec 5, 2026
3f012ae
Merge branch 'release/0.11.0' into fix/0.11.0-s1-serialized-origin
ffroliva Dec 5, 2026
8b7fbaf
Merge branch 'fix/0.11.0-s1-serialized-origin' into release/0.11.0
ffroliva Dec 5, 2026
dfee207
Merge branch 'fix/0.11.0-s11-inactivity-log' into release/0.11.0
ffroliva Dec 5, 2026
bcf6aa1
ci: attach a CycloneDX SBOM to each release
ffroliva Dec 5, 2026
f448fa6
ci: build the release SBOM in a job without publishing rights
ffroliva Dec 5, 2026
8111e2b
ci: keep the release smoke test on a valid uv command
ffroliva Dec 5, 2026
9ce0d16
Merge branch 'ci/0.11.0-t0.6-sbom' into release/0.11.0
ffroliva Dec 5, 2026
d735ac9
test: add failing tests and Remotes stub for GitHub detector hardening
ffroliva Dec 5, 2026
0a6f138
feat: harden the GitHub remote detector (BootUI 2.6.0)
ffroliva Dec 5, 2026
235f8d4
test: cite BootUI inactivity tests, not their helper
ffroliva Dec 5, 2026
896b42d
fix: trim the GitHub credential host as Java trim does
ffroliva Dec 5, 2026
149afab
Merge branch 'fix/0.11.0-s11-inactivity-log' into release/0.11.0
ffroliva Dec 5, 2026
f03df7d
fix: refuse a GitHub host with control characters before resolving a …
ffroliva Dec 5, 2026
69eb918
fix: refuse only control characters in a GitHub token host
ffroliva Dec 5, 2026
06f9c7e
Merge branch 'release/0.11.0' into feat/0.11.0-github-detector
ffroliva Dec 5, 2026
7af7c82
test: add failing tests for unassessed advisory candidates
ffroliva Dec 5, 2026
42633cb
feat: report advisories that could not be assessed (BootUI 2.6.0)
ffroliva Dec 5, 2026
f9ad9b9
Merge branch 'release/0.11.0' into feat/0.11.0-unassessed-advisories
ffroliva Dec 5, 2026
0863018
test: pin the review findings for the GitHub detector
ffroliva Dec 5, 2026
ae17823
fix: align the GitHub detector's URI and decoding rules with BootUI
ffroliva Dec 5, 2026
3eeb9cf
test: pin the branch-review findings for the GitHub detector
ffroliva Dec 5, 2026
3ed1c19
test: pin the review findings for unassessed advisory candidates
ffroliva Dec 5, 2026
5c4a8f1
fix: stop the GitHub detector at an unsafe gitdir pointer and match B…
ffroliva Dec 5, 2026
966c1a5
Merge branch 'feat/0.11.0-github-detector' into release/0.11.0
ffroliva Dec 5, 2026
b56a54b
test: pin BootUI's percent, hostname and port rules for the GitHub de…
ffroliva Dec 5, 2026
add5b36
fix: decode remote paths and check hosts with BootUI's URI grammar
ffroliva Dec 5, 2026
690797e
fix: align unassessed advisory reporting with BootUI and sharpit's ow…
ffroliva Dec 5, 2026
efb2718
test: accept an empty port in a GitHub remote as BootUI does
ffroliva Dec 5, 2026
886330b
refactor: keep the assessment DTO constructor separate from its builder
ffroliva Dec 5, 2026
ae7b2f8
fix: accept an empty port in a GitHub remote as BootUI does
ffroliva Dec 5, 2026
6d0d160
Merge branch 'feat/0.11.0-github-detector' into release/0.11.0
ffroliva Dec 5, 2026
2bdd33d
test: pin GitHub invalid-JSON handling
ffroliva Dec 5, 2026
0778af8
feat: report invalid GitHub JSON per section (BootUI 2.6.0)
ffroliva Dec 5, 2026
6b703bc
refactor: tidy GitHub invalid-JSON decoding and its tests
ffroliva Dec 5, 2026
3f70cd1
test: pin the branch-review findings for unassessed advisories
ffroliva Dec 5, 2026
4c87064
test: pin BootUI's body decoding and number limits for GitHub responses
ffroliva Dec 5, 2026
2ffbf2b
fix: decode GitHub bodies as UTF-8 and bound number literals as BootU…
ffroliva Dec 5, 2026
b6c3e93
fix: keep a failed repository quota out of the GitHub warnings
ffroliva Dec 5, 2026
833f72d
Merge branch 'release/0.11.0' into feat/0.11.0-github-decoding
ffroliva Dec 5, 2026
d8ef5ec
Merge branch 'feat/0.11.0-github-decoding' into release/0.11.0
ffroliva Dec 5, 2026
39fc77a
fix: describe candidate-only dependencies and treat blank ids as Boot…
ffroliva Dec 5, 2026
e405327
test: drop line and paragraph separator ids as BootUI does
ffroliva Dec 5, 2026
35b2858
fix: treat line and paragraph separators as blank like Java
ffroliva Dec 5, 2026
f73653c
Merge branch 'release/0.11.0' into feat/0.11.0-unassessed-advisories
ffroliva Dec 5, 2026
7591409
test: add GitHub alert pagination tests and stub
ffroliva Dec 5, 2026
544a7a5
feat: implement GitHub alert pagination
ffroliva Dec 5, 2026
fb4cbae
test: pin Jackson's digit and name-length limits
ffroliva Dec 5, 2026
0601bb6
docs: name the code-scan action without the vendor word
ffroliva Dec 5, 2026
037b32f
test: expect the SBOM among the release files
ffroliva Dec 5, 2026
cf7b480
Merge branch 'chore/0.11.0-t0.2-dependabot' into release/0.11.0
ffroliva Dec 5, 2026
700fc8e
Merge branch 'ci/0.11.0-t0.6-sbom' into release/0.11.0
ffroliva Dec 5, 2026
788a7a9
fix: count digits and bound property names as Jackson does
ffroliva Dec 5, 2026
94bef01
Merge branch 'release/0.11.0' into feat/0.11.0-github-decoding
ffroliva Dec 5, 2026
3d928eb
Merge branch 'feat/0.11.0-github-decoding' into release/0.11.0
ffroliva Dec 5, 2026
e027bab
Merge branch 'release/0.11.0' into feat/0.11.0-unassessed-advisories
ffroliva Dec 5, 2026
3039fb8
test: add GitHub alert pagination client tests
ffroliva Dec 5, 2026
144bbe8
feat: implement GitHub alert pagination and budget reservation
ffroliva Dec 5, 2026
e768f78
docs: record GitHub alert pagination matrix rows
ffroliva Dec 5, 2026
8fad827
test: record the 2.6.0 assessment id fields as newer than the golden
ffroliva Dec 5, 2026
aea7e20
Merge branch 'release/0.11.0' into feat/0.11.0-github-pagination
ffroliva Dec 5, 2026
3efaf1e
Merge branch 'feat/0.11.0-unassessed-advisories' into release/0.11.0
ffroliva Dec 5, 2026
fbc0904
fix: restore the typing import lost in the release merge
ffroliva Dec 5, 2026
584f5bd
test: pin per-section alert page failures
ffroliva Dec 5, 2026
6cd71ed
fix: keep alert page failures inside their section
ffroliva Dec 5, 2026
c0bcf3f
Merge branch 'feat/0.11.0-github-pagination' into release/0.11.0
ffroliva Dec 5, 2026
487ff78
test: add GitHub remote selection, target identity, and context tests
ffroliva Dec 5, 2026
eeef221
test: pin Jackson's nesting depth limit
ffroliva Dec 5, 2026
410dc1c
feat: select the GitHub remote and bind refresh to the consented repo…
ffroliva Dec 5, 2026
4f4861d
fix: bound JSON nesting depth as Jackson does
ffroliva Dec 5, 2026
f8451f1
test: pin alert page digests with lone surrogates
ffroliva Dec 5, 2026
4d891c9
fix: hash alert pages as BootUI does and keep digest failures in thei…
ffroliva Dec 5, 2026
6d1361b
chore: regenerate the CLI manifest for the vulnerabilities description
ffroliva Dec 5, 2026
9568e55
test: pin the not-assessed row for an incomplete query
ffroliva Dec 5, 2026
f7ca44a
Merge branch 'release/0.11.0' into feat/0.11.0-github-pagination
ffroliva Dec 5, 2026
81b7881
docs: record GitHub remote selection, target identity, and context pa…
ffroliva Dec 5, 2026
3a21c33
Merge branch 'release/0.11.0' into feat/0.11.0-unassessed-advisories
ffroliva Dec 5, 2026
87b17ae
Merge branch 'feat/0.11.0-github-decoding' into release/0.11.0
ffroliva Dec 5, 2026
3963a3b
Merge branch 'release/0.11.0' into feat/0.11.0-unassessed-advisories
ffroliva Dec 5, 2026
be17dbb
Merge branch 'feat/0.11.0-unassessed-advisories' into release/0.11.0
ffroliva Dec 5, 2026
36c5a5e
Merge branch 'release/0.11.0' into feat/0.11.0-github-pagination
ffroliva Dec 5, 2026
7c353a1
Merge branch 'feat/0.11.0-github-pagination' into release/0.11.0
ffroliva Dec 5, 2026
b35359c
Merge branch 'release/0.11.0' into feat/0.11.0-github-service
ffroliva Dec 5, 2026
c29f440
test: tighten GitHub selection order and token checks
ffroliva Dec 5, 2026
902d313
refactor: require the origin reason and share the stamped GitHub report
ffroliva Dec 5, 2026
f54081e
Merge branch 'feat/0.11.0-github-service' into release/0.11.0
ffroliva Dec 5, 2026
73797f9
refactor: one context path for the GitHub refresh
ffroliva Dec 5, 2026
551508f
Merge branch 'feat/0.11.0-github-service' into release/0.11.0
ffroliva Dec 5, 2026
54a19ca
docs: record the Wave 1 BootUI 2.6.0 changes
ffroliva Dec 5, 2026
e17fd80
Merge branch 'release/0.11.0' into docs/0.11.0-wave1
ffroliva Dec 5, 2026
d632498
docs: regenerate the 0.11.0 parity deviations
ffroliva Dec 5, 2026
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
21 changes: 20 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,50 @@
version: 2
updates:
# Cooldowns do not delay Dependabot security updates.
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
groups:
uv-minor-and-patch:
update-types:
- "minor"
- "patch"
cooldown:
default-days: 3
commit-message:
prefix: "chore(deps)"

- package-ecosystem: "pip"
directory: "/website"
schedule:
interval: "weekly"
cooldown:
default-days: 3
commit-message:
prefix: "chore(deps)"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
github-actions-minor-and-patch:
update-types:
- "minor"
- "patch"
cooldown:
default-days: 3
commit-message:
prefix: "chore(deps)"

# npm updates require running `npm --prefix ui run build` and committing built assets (checked by CI drift job)
# npm updates require rebuilding the committed UI with `npm --prefix ui run build` as described in docs/development/ci.md (Dependency updates); CI checks for drift
- package-ecosystem: "npm"
directory: "/ui"
schedule:
interval: "weekly"
cooldown:
default-days: 3
open-pull-requests-limit: 2
groups:
ui-dependencies:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ jobs:
- run: uv run --no-sync ruff format --check
- run: uv run --no-sync pyright
- run: uvx --from actionlint-py==1.7.12.25 actionlint
- run: uvx zizmor@1.32.0 --offline --min-severity medium .github/workflows
- run: uvx zizmor@1.32.0 --offline --min-severity low .github/workflows
# Dogfood: the example's fixed route must pass `pytest --sharpit`, its planted N+1 must fail it.
- run: uv run --no-sync python -c "import os, sys; os.makedirs(sys.argv[1], exist_ok=True)" "${{ runner.temp }}/speed" # the speed plugins write here
- run: uv run --no-sync python -m pytest examples/fastapi_sqla/tests_gate -k fixed --sharpit --sharpit-junit=sharpit-junit.xml -p scripts.pytest_speed.fixture_timer --fixture-times="${{ runner.temp }}/speed/ft-fixed.jsonl" -p scripts.pytest_speed.rebuild_log --rebuild-log="${{ runner.temp }}/speed/rb-fixed.json" --junitxml="${{ runner.temp }}/junit-fixed.xml"
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,40 @@ permissions:
contents: read

jobs:
sbom:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
enable-cache: false

- name: Generate the runtime dependency SBOM
env:
TAG: ${{ github.ref_name }}
run: |
version="${TAG#v}"
mkdir -p "$RUNNER_TEMP/sbom"
uv export --frozen --no-dev --no-default-groups --no-emit-project --format requirements.txt \
-o "$RUNNER_TEMP/sharpit-${version}-requirements.txt"
uvx --from cyclonedx-bom==9.0.2 cyclonedx-py requirements \
"$RUNNER_TEMP/sharpit-${version}-requirements.txt" --spec-version 1.5 \
--output-file "$RUNNER_TEMP/sbom/sharpit-${version}.cdx.json"

- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-sbom
path: ${{ runner.temp }}/sbom/sharpit-*.cdx.json
if-no-files-found: error
retention-days: 1

publish:
needs: sbom
runs-on: ubuntu-latest
permissions:
contents: write # the GitHub Release
Expand Down Expand Up @@ -64,6 +97,11 @@ jobs:
exit 1
fi

- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: release-sbom
path: ${{ runner.temp }}/sbom

- name: Smoke-test the wheel
run: |
uv venv "$RUNNER_TEMP/smoke" --python 3.12
Expand All @@ -77,5 +115,6 @@ jobs:
files: |
dist/*.whl
dist/*.tar.gz
${{ runner.temp }}/sbom/*.cdx.json
generate_release_notes: true
prerelease: ${{ steps.kind.outputs.prerelease == 'true' }}
54 changes: 54 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: security-audit
on:
schedule:
- cron: "17 5 * * 2"
workflow_dispatch:
pull_request:
paths:
- uv.lock
- ui/package-lock.json
- website/requirements.txt

permissions: {}

jobs:
dependencies:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
- name: Export and audit locked Python dependencies
run: |
uv export --frozen --all-extras --all-groups --no-emit-project -o /tmp/sharpit-requirements.txt
uvx --from pip-audit==2.10.1 pip-audit -r /tmp/sharpit-requirements.txt --no-deps --disable-pip
uvx --from pip-audit==2.10.1 pip-audit -r website/requirements.txt --no-deps --disable-pip
- name: Audit locked npm dependencies
working-directory: ui
run: npm audit --audit-level=high

zizmor:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
- name: Audit workflows with zizmor
run: uvx zizmor@1.32.0 --format sarif .github/workflows > zizmor.sarif || true # Findings produce SARIF and a non-zero status.
env:
GH_TOKEN: ${{ github.token }}
- uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
with:
sarif_file: zizmor.sarif
category: zizmor
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ to loosen. Change a rule only in that test and here, in the same PR, with the re
- **Port BootUI, do not reinvent** (owner, 2026-11-12: "whatever we can directly port from BootUI we should; we don't
need to recreate anything, just rewrite and adapt"). Before writing any code for a feature, read BootUI's own source
for it at the pinned tag, in a BootUI clone, not this repo (`git -C <bootui clone> show v2.3.0:<path>` for 0.6.0;
`v2.4.0` for 0.7.0; `v2.5.0` for 0.8.0), and translate it: same structure, order of checks, thresholds, user-facing texts (env names
`v2.4.0` for 0.7.0; `v2.5.0` for 0.8.0 to 0.10.0; `v2.6.0` for 0.11.0), and translate it: same structure, order of checks, thresholds, user-facing texts (env names
adapted) and tests (`# ported:`). Adapt only where Python/FastAPI/SQLAlchemy forces it or an owner ruling differs;
each adaptation is one deviation row, with its reason, in the lane's matrix fragment
(`docs/reference/matrix-updates/<lane>.tsv`). Never design from a summary of BootUI: read the lines. The safety model
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Security updates are provided only for the latest release on PyPI:

Please report suspected security vulnerabilities privately. **Do not post vulnerability details in public issues or discussions.**

- Once enabled on the repository, report privately via GitHub's "Report a vulnerability" button under the **Security** tab.
- Until private vulnerability reporting is enabled, please open a GitHub issue titled `"Security contact request"` containing **NO details**, and the maintainer will reply with a private channel to share details securely.
- Report privately using GitHub's "Report a vulnerability" button under the **Security** tab. The maintainer acknowledges reports within 7 days.

## Network Egress and Trust Boundaries

Expand All @@ -34,6 +33,7 @@ sharpit enforces strict safety invariants:
- Whole scans have a 60-second default deadline (`SHARPIT_VULNERABILITIES_SCAN_TIMEOUT`); each network request is capped by the remaining scan time.
- **Fails closed**: If network requests to OSV or EPSS fail or time out, the scan reports the failure gracefully without compromising security or crashing the host application.
- **Client address**: The trusted-source decision rests on the ASGI client address and the request's forwarding and client-address headers; the ASGI client address must be the real peer.
- **Cross-site requests**: An `Origin` header must be a serialized `http` or `https` origin (`scheme://host[:port]`, no path, trailing slash, query, fragment or userinfo, no surrounding whitespace, port at most 65535), and its host must be the request's `Host`; an unreadable, empty or `null` origin is refused on every method. On an API path the origin must equal the request's own scheme, host and port. A write that carries `Sec-Fetch-Site` must send `same-origin` or `none`; `same-site`, `cross-site`, an empty value and any unknown value are refused. Every refusal is a 403 with the cross-site message, and a request whose own origin cannot be formed never passes the API-path comparison.

### Request input reaching commands and file paths

Expand Down
24 changes: 24 additions & 0 deletions docs/decisions/004-dependency-audit-tooling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Dependency audit tooling

## Status

Implemented in the weekly security audit workflow and on pull requests that change a dependency lock or the website requirements.

## Decision

OWASP Dependency-Check is not adopted for dependency auditing. Its [file type analyzer list](https://dependency-check.github.io/DependencyCheck/analyzers/index.html) does not include `uv.lock`. Its Python-related analyzers are “Pip”, which scans `requirements.txt` files, and “Python”, which scans Python source files and package metadata. Both appear under Experimental Analyzers; the documentation says these analyzers are experimental because of higher false positive and false negative rates.

Python dependency coverage comes from `pip-audit` over a requirements file exported from `uv.lock`, plus `website/requirements.txt`. npm dependency coverage comes from `npm audit` on `ui/package-lock.json`. CodeQL uses the `extended` query suite for code analysis, and zizmor audits GitHub Actions workflows.

## Rationale

Dependency-Check cannot directly consume the project’s Python lock file, and its documented Python analyzer only recognizes requirements files and package metadata. Exporting the frozen uv lock gives `pip-audit` the resolved dependency set without asking it to resolve dependencies. npm’s own audit command consumes the committed lock file directly. CodeQL and zizmor cover source-code and workflow risks outside package advisory matching.

## Consequences

The Python audit workflow must keep its export flags aligned with the project’s locked extras and groups and must use `pip-audit` without dependency resolution. The website requirements file is audited separately. npm audit reports high and critical findings as failures. Dependency-Check remains unconfigured; its experimental Python analyzers are not treated as lock-file coverage.

## Enforced by

- `.github/workflows/security-audit.yml` audits the frozen Python export, the website requirements, the npm lock, and the workflow files.
- `tests/test_ci_layout.py` pins the dependency audit triggers and commands; `src/sharpit/cli/docs_catalog.py` includes this decision in the bundled documentation catalog.
1 change: 1 addition & 0 deletions docs/decisions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Each record states the decision, its status, and the code or tests that enforce
- [Baseline entry owner](baseline-owner.md) explains when a baselined test-runtime finding is reported fixed or inconclusive.
- [WSGI request target validation](wsgi-request-target.md) describes how the WSGI adapter checks the original request target and Host header.
- [Request values in memory](003-request-values-in-memory.md) records the bounded, request-lifetime matching used by the security-sinks sensor.
- [Dependency audit tooling](004-dependency-audit-tooling.md) records the decision not to adopt OWASP Dependency-Check and the package and workflow audit coverage.
17 changes: 17 additions & 0 deletions docs/development/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,23 @@ full matrix runs on every merge before anything ships.
of that branch, which refreshes the base analysis the PR scans compare against (a stale one made each PR's Python sensor
re-parse ~848 files). Every push is its own concurrency group (`run_id`), so none cancels another.

## Dependency updates

At the start of each release wave, list open Dependabot pull requests with `gh pr list --author "app/dependabot"`.
Land them one at a time. Main protection requires an up-to-date branch and auto-merge is off: merge `origin/main` into
the Dependabot branch, push it, wait for CI, then merge the pull request.

Complete per-bump fixes before merging:

- A code-scan action bump also updates the scanner cache key
`sonar-${{ runner.os }}-vX.Y.Z` in `.github/workflows/ci.yml`. The key is pinned by
`test_the_sonar_scanner_cache_is_keyed_and_pinned`.
- An npm bump rebuilds `src/sharpit/ui/static` with `cd ui && npm ci --ignore-scripts && npm run build`, then commits the
built assets.

A maintainer commit on a Dependabot branch is signed off. A failed DCO check is fixed with a signed remediation commit,
never a force-push. When every Dependabot pull request fails the same shards, check `main` first.

## CodeQL on release pull requests

The classic branch protection rule for `release/*` enables CodeQL default setup on pull requests into version
Expand Down
Loading