Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

fix(ci): guard generated plugin Markdown changes (#683)

soyeon-oai9bd256af7667
diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml
index 56527c909..952bc2f27 100644
--- a/.github/workflows/node-ci.yml
+++ b/.github/workflows/node-ci.yml
@@ -48,7 +48,8 @@ jobs:
markdown_only=true
while IFS= read -r -d '' path; do
changed=true
- if [[ "$path" != *.md ]]; then
+ if [[ "$path" != *.md ||
+ "$path" == sdk/typescript/_bundled_plugin/* ]]; then
markdown_only=false
fi
done < "$changed_files"
diff --git a/sdk/typescript/tests-ts/release-automation.test.ts b/sdk/typescript/tests-ts/release-automation.test.ts
index 901f9a781..b5943716e 100644
--- a/sdk/typescript/tests-ts/release-automation.test.ts
+++ b/sdk/typescript/tests-ts/release-automation.test.ts
@@ -4043,6 +4043,13 @@ describe("GitHub release workflow safeguards", () => {
["README.md", "docs/guide.md"],
"markdown",
],
+ [
+ "generated-plugin Markdown-only PR",
+ "pull_request",
+ false,
+ ["sdk/typescript/_bundled_plugin/skills/example/SKILL.md"],
+ "full",
+ ],
["base retarget", "pull_request", true, ["README.md"], "full"],
["mixed PR", "pull_request", false, ["README.md", "src/index.ts"], "full"],
[