Harden CI/security: CodeQL + Dependabot + coverage gate + SECURITY#1
Merged
Conversation
Replace 'Measured before/after: pending' with measured loop-ledger figures for the first routed week (2026-06-09 -> 06-16), honestly labeled: - Pre (Opus-class era, Fable swap only hours old): 11 runs/21 iters, $18.50, $0.88/iter, $1.68/run. - Post (2 deep-dive runs): 3 iters, $2.90, $0.97/iter, $1.45/run. - Per-iteration cost is flat by design (deep dive + judge kept premium); n=2 post is inside the noise; cross-boundary totals are a strawman. Verdict: data too thin/biased (instruments only the premium-by-design loops) to publish a savings number. Keeps the doc's 'measured, not asserted' rule. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…o SHAs Uniform reliability/security standard (template proven on agent-gate): - codeql.yml: security-extended SAST on push/PR/weekly - dependabot.yml: weekly pip + github-actions updates - ci.yml: coverage-gated matrix (--cov=agent_cost_attribution --cov-fail-under=90; 96%) kept the meter smoke-test; + self-contained coverage badge/PR-comment job; least-priv perms; SHA-pinned actions - pyproject: [tool.coverage.run] source + relative_files - SECURITY.md: private vuln disclosure policy - README: CodeQL + coverage badges + Reliability & security section Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
The coverage badge job ran 'coverage run -m pytest' but only installed coverage, so pytest was missing. agent-gate/rag-guard pull pytest via the [dev] extra; this repo has none, so add pytest explicitly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applies the uniform reliability/security standard (proven on agent-gate).
Added
security-extended) → Security tabpip+github-actions--cov=agent_cost_attribution --cov-fail-under=90across Python 3.9–3.12 (measured 96%); meter smoke-test retained; + self-contained coverage badge/PR-commentpermissions:; Actions pinned to commit SHAsVerified locally
pytest --cov --cov-fail-under=90→ pass 96%, 38 tests · smoke-test pass · coverage-json clean · YAML valid.🤖 Generated with Claude Code