Skip to content

ci: Sanitize upstream workflow triggers during sync#65

Merged
CSRessel merged 2 commits into
devfrom
feat/sanitize-upstream-workflows
Dec 2, 2025
Merged

ci: Sanitize upstream workflow triggers during sync#65
CSRessel merged 2 commits into
devfrom
feat/sanitize-upstream-workflows

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

@CSRessel CSRessel commented Dec 2, 2025

Summary

🤖 Generated with Nori

  • Adds workflow sanitization to upstream-sync.yml that replaces all on: trigger blocks with on: workflow_dispatch in pulled upstream workflows
  • Prevents upstream workflows from running automatically in fork branches
  • Includes test script with fixtures for various on: patterns

Changes

  • Add awk-based YAML processing to replace on: blocks
  • Exclude fork-specific workflows (upstream-sync.yml, rust-ci.yml)
  • Commit sanitization as part of sync branch creation
  • Include sanitized file list in PR body and summary

Test Plan

  • Ran local test script: scripts/test-sanitize/test-sanitize.sh (4 tests pass)
  • Manual verification: trigger workflow with dry_run=true to verify logic

Share Nori with your team: https://www.npmjs.com/package/nori-ai

CSRessel and others added 2 commits December 2, 2025 16:04
…th [Nori](https://nori.ai)\n\nCo-Authored-By: Nori <noreply@tilework.tech>

Adds workflow sanitization to upstream-sync.yml that replaces all on: trigger blocks with workflow_dispatch in pulled upstream workflows. This prevents upstream workflows from running automatically in fork branches.

Changes: Add awk-based YAML processing, exclude fork-specific workflows, commit sanitization as part of sync branch, include sanitized file list in PR body, add test script.
🤖 Generated with [Nori](https://nori.ai)

Co-Authored-By: Nori <noreply@tilework.tech>
@CSRessel CSRessel force-pushed the feat/sanitize-upstream-workflows branch from 48742a9 to 6b7c7f1 Compare December 2, 2025 21:17
@CSRessel CSRessel merged commit ade24cb into dev Dec 2, 2025
0 of 2 checks passed
@CSRessel CSRessel deleted the feat/sanitize-upstream-workflows branch December 2, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant