* test: isolate embedding configuration between unit fixtures Reset model-probe gateway state and pin chunk-sanitization fixtures to the shared legacy embedding dimensions. Preserve the original persistence and hash assertions. * feat: add existing-agent memory and unified hosted access (v0.49.0.0) Add isolated in-agent setup and repair, private PGLite backup and relocated restore, shared hosted grants and live delegation enforcement, secure credential handoff and recovery, and capability discovery and verification. Make local and hosted onboarding prominent in dedicated Grok Bot and Muse guides. Preserve explicit native-harness acceptance gates, update generated references and release metadata, and keep withdrawn facts out of active memory after synchronization. Co-Authored-By: OpenAI Codex <noreply@openai.com> * docs: sync harness documentation for v0.49.0.0 * fix: update security dependencies and confine restored configuration Refresh patched dependency versions, traverse only owned configuration properties during restore, and trust the CI checkout before calculating the Semgrep baseline. Add a regression that preserves inherited path objects. --------- Co-authored-by: OpenAI Codex <noreply@openai.com>
57 lines
2.4 KiB
YAML
57 lines
2.4 KiB
YAML
name: Semgrep
|
|
|
|
# Static analysis (SAST) with Semgrep Community Edition (#2272). Tokenless:
|
|
# uses the public registry rulesets, needs zero secrets. Findings print in
|
|
# the job log; no code-scanning/SARIF upload by design (keeps permissions
|
|
# read-only, no security-events: write).
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
schedule:
|
|
- cron: '30 7 * * 1' # weekly, Monday 07:30 UTC
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
semgrep:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
container:
|
|
image: semgrep/semgrep:1.170.0@sha256:c98f8829eea377274ee4b10656458b078b88232469b2ff913f091c2317347c9d
|
|
steps:
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
with:
|
|
# Full history so --baseline-commit can diff against the PR base;
|
|
# a shallow clone would not contain the base commit.
|
|
fetch-depth: 0
|
|
# Graduated from advisory: on a PR, fail only on findings NEW since the PR
|
|
# base (semgrep --baseline-commit), so legacy findings never block an
|
|
# unrelated PR and no full-tree triage is required. Scheduled/dispatch
|
|
# runs have no PR base, so they do a full-tree report-only scan.
|
|
- name: Semgrep scan
|
|
env:
|
|
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
run: |
|
|
# The container user differs from checkout's owner. Trust only this
|
|
# workspace so our merge-base lookup works before Semgrep starts.
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
if [ -n "$BASE_SHA" ]; then
|
|
# Diff against the MERGE BASE, not the base-branch head captured at
|
|
# event time: the checkout is the merge ref against current master,
|
|
# so a finding master landed after the event would otherwise be
|
|
# attributed to this PR. merge-base is the true common ancestor.
|
|
BASELINE="$(git merge-base "$BASE_SHA" HEAD || echo "$BASE_SHA")"
|
|
echo "PR scan — failing only on findings new since $BASELINE"
|
|
semgrep scan --config p/default --config p/typescript --error --baseline-commit "$BASELINE"
|
|
else
|
|
echo "Full-tree scan (schedule/dispatch) — report-only"
|
|
semgrep scan --config p/default --config p/typescript || true
|
|
fi
|