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

推荐订阅源

N
Netflix TechBlog - Medium
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
WordPress大学
WordPress大学
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
Jina AI
Jina AI
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
D
Docker

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
fix(ci): require OpenGrep SARIF artifacts · openclaw/open...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -68,6 +68,53 @@ describe("run-opengrep.sh", () => {

6868

expect(args).toContain("security/opengrep/precise.yml");

6969

});

707071+

it("writes empty SARIF when a changed scan has no first-party paths", () => {

72+

const repo = createTempDir("openclaw-run-opengrep-empty-sarif-");

73+

git(repo, "init", "-q");

74+

git(repo, "config", "user.email", "test@example.com");

75+

git(repo, "config", "user.name", "Test User");

76+77+

copyRunOpengrepFiles(repo);

78+

writeFile(path.join(repo, "security/opengrep/precise.yml"), "rules: []\n");

79+

writeFile(path.join(repo, ".github/actions/ensure-base-commit/action.yml"), "name: ensure\n");

80+

git(repo, "add", ".");

81+

git(repo, "commit", "-qm", "initial");

82+83+

fs.appendFileSync(path.join(repo, ".github/actions/ensure-base-commit/action.yml"), "# changed\n");

84+

const argsPath = path.join(repo, "opengrep-args.txt");

85+

const binDir = path.join(repo, "bin");

86+

fs.mkdirSync(binDir);

87+

writeFile(

88+

path.join(binDir, "opengrep"),

89+

[

90+

"#!/usr/bin/env bash",

91+

`printf '%s\\n' "$@" > ${JSON.stringify(argsPath)}`,

92+

"exit 0",

93+

"",

94+

].join("\n"),

95+

);

96+

fs.chmodSync(path.join(binDir, "opengrep"), 0o755);

97+98+

execFileSync("bash", ["scripts/run-opengrep.sh", "--changed", "--sarif", "--error"], {

99+

cwd: repo,

100+

env: {

101+

...process.env,

102+

PATH: `${binDir}${path.delimiter}${process.env.PATH ?? ""}`,

103+

OPENCLAW_OPENGREP_BASE_REF: "HEAD",

104+

},

105+

encoding: "utf8",

106+

});

107+108+

const sarif = JSON.parse(

109+

fs.readFileSync(path.join(repo, ".opengrep-out/precise.sarif"), "utf8"),

110+

);

111+

expect(sarif.version).toBe("2.1.0");

112+

expect(sarif.runs[0].tool.driver.name).toBe("Opengrep OSS");

113+

expect(sarif.runs[0].tool.driver.semanticVersion).toBe("1.22.0");

114+

expect(sarif.runs[0].results).toEqual([]);

115+

expect(fs.existsSync(argsPath)).toBe(false);

116+

});

117+71118

it("scans PR files instead of main-only files when the payload base is stale", () => {

72119

const repo = createTempDir("openclaw-run-opengrep-merge-");

73120

git(repo, "init", "-q", "--initial-branch=main");