Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
babf0b4
chore(release): 26.11.19 automatic authorization and complete scans
ancongui Nov 16, 2026
4cc95e7
fix: harden scan scope, grant scopes, message checks and cleanup
ancongui Nov 16, 2026
f34042b
fix(grants): count a grant typed while the session works
ancongui Nov 16, 2026
798516d
fix(grants): cover workspace projects in automatic mode
ancongui Nov 16, 2026
6d61626
feat(bugs): send agent and security reports as soon as they are filed
ancongui Nov 16, 2026
b916bf8
feat(bugs): cap reports in an agent's own words at ten a day
ancongui Nov 16, 2026
ea9447a
fix(grants): count only checkouts present when the session started
ancongui Nov 16, 2026
6bd3f96
fix(grants): require the session-start list, keep explicit guided runs
ancongui Nov 16, 2026
1b8f491
fix(hooks): remind presentation misses instead of sending replies back
ancongui Nov 16, 2026
bf9f859
fix(bugs): version consent and cap reports over a rolling 24 hours
ancongui Nov 16, 2026
8f2368f
fix(grants): grant only from the prompt hook, never in nested sessions
ancongui Nov 16, 2026
e76a7c3
fix(hooks): detect Codex mid-turn prompts, remind development turns
ancongui Nov 16, 2026
504d659
fix(guard): close archive, gh repository and same-command retarget paths
ancongui Nov 16, 2026
721158a
fix(bugs): match duplicates by routing and bug, decline on Ctrl+D
ancongui Nov 16, 2026
0b171aa
fix(bugs): keep a public report from going out beside a private one
ancongui Nov 16, 2026
141a184
fix(grants): confirm queued grants after long calls, catch detached runs
ancongui Nov 16, 2026
9702366
fix(bugs): list ctypes among the standard modules devkit imports
ancongui Nov 16, 2026
a9b6a42
fix(guard): read archive and tree contents before they land
ancongui Nov 16, 2026
ba11af2
feat!: drop the command guard so devkit advises and never refuses
ancongui Nov 16, 2026
3992fd7
fix: keep devkit's own command checks after the guard removal
ancongui Nov 17, 2026
a79973f
fix: approve Codex rewrites only where Codex would not ask
ancongui Nov 17, 2026
4d33a73
fix(tests): keep session attachment out of peer and welcome tests
ancongui Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 45 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: tests (Python ${{ matrix.python }})
if: github.event.pull_request.draft == false # drafts wait for ready_for_review
runs-on: macos-latest
timeout-minutes: 60 # the suite takes about 35 minutes on the runner (4,226 tests in 26.11.9); 30 cut it short
timeout-minutes: 90 # the suite takes about 46 minutes on the runner (4,701 tests in 26.11.19); 60 left too little room
strategy:
fail-fast: false
matrix:
Expand All @@ -37,6 +37,24 @@ jobs:
python-version: ${{ matrix.python }}
- name: Compile
run: python -m compileall -q lib bin
- name: Prepare native analysis evidence
run: |
native_dir=$(mktemp -d "${TMPDIR:-/tmp}/devkit-native.XXXXXX")
echo "DEVKIT_NATIVE_EVIDENCE=$native_dir" >> "$GITHUB_ENV"
- name: Native static analysis
run: |
native_dir=${DEVKIT_NATIVE_EVIDENCE:-}
if [ -z "$native_dir" ]; then native_dir=$(mktemp -d "${TMPDIR:-/tmp}/devkit-native.XXXXXX"); fi
echo "Native analysis evidence: $native_dir"
python3 scripts/security_corpus.py --native-output "$native_dir/native.json"
- name: Preserve native analysis evidence
if: always() && env.DEVKIT_NATIVE_EVIDENCE != ''
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: native-analysis-${{ matrix.python }}
path: ${{ env.DEVKIT_NATIVE_EVIDENCE }}/native.json
if-no-files-found: error
retention-days: 14
- name: Unit tests
run: python -m unittest discover -s tests -t .
env:
Expand All @@ -46,17 +64,39 @@ jobs:
name: Security scans
if: github.event.pull_request.draft == false # drafts wait for ready_for_review
runs-on: ubuntu-24.04
timeout-minutes: 20
timeout-minutes: 60 # the serial Semgrep scan takes about 11 minutes on a fast Mac, longer on the runner
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Secrets (gitleaks)
run: docker run --rm -v "$PWD:/src" -w /src ghcr.io/gitleaks/gitleaks:v8.30.1@sha256:c00b6bd0aeb3071cbcb79009cb16a60dd9e0a7c60e2be9ab65d25e6bc8abbb7f dir --redact --no-banner .
- name: Prepare security evidence
run: |
scan_dir=$(mktemp -d "${TMPDIR:-/tmp}/devkit-security.XXXXXX")
echo "SECURITY_EVIDENCE=$scan_dir" >> "$GITHUB_ENV"
- name: Code (semgrep)
run: >-
docker run --rm -v "$PWD:/src" -w /src semgrep/semgrep:1.182.0@sha256:4a34048c04fef049f71665047f074cffb00cc3d89482f965a5cd151d589237af
semgrep scan --config p/default --error --metrics off --disable-version-check
run: |
scan_dir=${SECURITY_EVIDENCE:-}
if [ -z "$scan_dir" ]; then scan_dir=$(mktemp -d "${TMPDIR:-/tmp}/devkit-security.XXXXXX"); fi
echo "Security evidence: $scan_dir"
docker run --rm -v "$PWD:/src:ro" -v "$scan_dir:/evidence" -w /src \
-e PYTHONDONTWRITEBYTECODE=1 \
semgrep/semgrep:1.182.0@sha256:4a34048c04fef049f71665047f074cffb00cc3d89482f965a5cd151d589237af \
python3 scripts/security_corpus.py --output /evidence
- name: Preserve security evidence
if: always() && env.SECURITY_EVIDENCE != ''
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: qualified-security-evidence
path: |
${{ env.SECURITY_EVIDENCE }}/manifest.json
${{ env.SECURITY_EVIDENCE }}/raw.json
${{ env.SECURITY_EVIDENCE }}/raw.log
${{ env.SECURITY_EVIDENCE }}/qualified.json
${{ env.SECURITY_EVIDENCE }}/qualified.log
if-no-files-found: error
retention-days: 14
- name: Dependencies (osv-scanner)
run: docker run --rm -v "$PWD:/src" -w /src ghcr.io/google/osv-scanner:v2.7.0@sha256:4f3b7e2c64b9d38a5febc5a7e4a3dfef1d1362f726dea7a2ef4762b46469fcd0 scan source -r --allow-no-lockfiles .
- name: Filesystem and IaC (trivy)
Expand Down
9 changes: 9 additions & 0 deletions .semgrepignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ venv/
# Semgrep's own rules folder and logs
.semgrep/
.semgrep_logs/

# Pieces that are not programs on their own: the dashboard script's first and last parts (one block across
# app.js, the sections and boot.js) and the pipeline templates with their placeholders. The qualification gate
# (scripts/security_corpus.py) scans the assembled dashboard and the rendered pipelines instead, and its raw scan
# still reads these files with no ignore list.
lib/devkit/web/app.js
lib/devkit/web/boot.js
templates/ci/**/*.yml
templates/ci/**/*.yaml
Loading
Loading