Skip to content

Commit 9a41339

Browse files
committed
chore: generalize opengrep rule compilation
1 parent dad83d3 commit 9a41339

17 files changed

Lines changed: 345 additions & 2810 deletions

‎.github/workflows/opengrep-precise-full.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: OpenGrep — Full
22

3-
# Manual repository-wide scan for the high-precision OpenGrep rule super-config
4-
# compiled from the GHSA detector-review pipeline. This is intentionally kept
5-
# separate from PR scanning so broad/backlog findings do not block unrelated
3+
# Manual repository-wide scan for the high-precision OpenGrep rule super-config.
4+
# This is intentionally kept separate from PR scanning so broad/backlog findings do not block unrelated
65
# pull requests.
76

87
on:

‎.github/workflows/opengrep-precise.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: OpenGrep — PR Diff
22

3-
# Runs the high-precision OpenGrep rule super-config that was compiled from the
4-
# detector-review pipeline against only the first-party source paths changed by
5-
# a pull request. Keeping PR scans diff-scoped makes findings attributable to
3+
# Runs the high-precision OpenGrep rule super-config against only the
4+
# first-party source paths changed by a pull request. Keeping PR scans diff-scoped makes findings attributable to
65
# the proposed change instead of surfacing unrelated repository-wide backlog.
76
#
87
# For a repository-wide scan, use the manual OpenGrep — Full workflow.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@
12811281
"check:madge-import-cycles": "node --import tsx scripts/check-madge-import-cycles.ts",
12821282
"check:no-conflict-markers": "node scripts/check-no-conflict-markers.mjs",
12831283
"check:no-runtime-action-load-config": "node scripts/check-no-runtime-action-load-config.mjs",
1284-
"check:opengrep-rule-metadata": "node scripts/check-opengrep-rule-metadata.mjs",
1284+
"check:opengrep-rule-metadata": "node security/opengrep/check-rule-metadata.mjs",
12851285
"check:runtime-sidecar-loaders": "node --import tsx scripts/check-runtime-sidecar-loaders.mjs",
12861286
"check:static-import-sccs": "pnpm check:madge-import-cycles",
12871287
"check:temp-path-guardrails": "node --import tsx scripts/check-temp-path-guardrails.ts",

0 commit comments

Comments
 (0)