惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
U
Unit 42
V
Visual Studio Blog
D
DataBreaches.Net
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
D
Docker
G
Google Developers Blog
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
S
SegmentFault 最新的问题

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(security): add GHSA detector-review pipeline and Ope...
jesse-merhi · 2026-04-30 · via Recent Commits to openclaw:main

@@ -0,0 +1,76 @@

1+

name: OpenGrep — PR Diff

2+3+

# Runs the high-precision OpenGrep rule super-config against only first-party

4+

# source paths changed by a pull request. Keeping PR scans diff-scoped makes

5+

# findings attributable to the proposed change instead of surfacing unrelated

6+

# repository-wide backlog.

7+

#

8+

# For a repository-wide scan, use the manual OpenGrep — Full workflow.

9+10+

on:

11+

pull_request:

12+13+

concurrency:

14+

group: opengrep-pr-diff-${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}

15+

cancel-in-progress: true

16+17+

permissions:

18+

contents: read

19+

security-events: write

20+21+

jobs:

22+

scan:

23+

name: Scan changed paths (precise)

24+

runs-on: blacksmith-16vcpu-ubuntu-2404

25+

timeout-minutes: 30

26+

steps:

27+

- name: Checkout

28+

uses: actions/checkout@v4

29+

with:

30+

persist-credentials: false

31+

# `scripts/run-opengrep.sh --changed` diffs base...HEAD.

32+

fetch-depth: 0

33+34+

- name: Install opengrep

35+

env:

36+

# Pin both the install script (by commit SHA) and the binary version.

37+

# The script SHA must match the v1.19.0 release tag in opengrep/opengrep

38+

# so a compromised or force-pushed `main` cannot RCE in our CI runner.

39+

# Bump both together when upgrading.

40+

OPENGREP_VERSION: v1.19.0

41+

OPENGREP_INSTALL_SHA: 9a4c0a68220618441608cd2bad4ff2eddccf8113

42+

run: |

43+

curl -fsSL "https://raw.githubusercontent.com/opengrep/opengrep/${OPENGREP_INSTALL_SHA}/install.sh" \

44+

| bash -s -- -v "$OPENGREP_VERSION"

45+

echo "$HOME/.opengrep/cli/latest" >> "$GITHUB_PATH"

46+47+

- name: Verify opengrep

48+

run: opengrep --version

49+50+

- name: Run opengrep on PR diff

51+

env:

52+

OPENCLAW_OPENGREP_BASE_REF: ${{ github.event.pull_request.base.sha }}...HEAD

53+

# Findings from precise rules block this workflow. Pull requests scan

54+

# changed first-party source paths only so findings stay attributable to

55+

# the PR diff. Test/fixture/QA path exclusions live in `.semgrepignore`

56+

# at the repo root and are picked up automatically.

57+

run: |

58+

mkdir -p .opengrep-out

59+

scripts/run-opengrep.sh --changed --sarif --error

60+61+

- name: Upload SARIF to GitHub Code Scanning

62+

uses: github/codeql-action/upload-sarif@v3

63+

# Only upload if the scan actually produced a SARIF file.

64+

if: always() && hashFiles('.opengrep-out/precise.sarif') != ''

65+

with:

66+

sarif_file: .opengrep-out/precise.sarif

67+

category: opengrep-pr-diff

68+69+

- name: Upload SARIF as workflow artifact

70+

if: always()

71+

uses: actions/upload-artifact@v4

72+

with:

73+

name: opengrep-pr-diff-sarif

74+

path: .opengrep-out/precise.sarif

75+

if-no-files-found: warn

76+

retention-days: 30