Skip to content

BIDS validation CI broken: escaped newlines in workflow template #285

Closed

Description

@neuromechanist

Problem

The BIDS validation workflow deployed to dataset repos has YAML syntax errors on line 33. Every push triggers the error: Invalid workflow file: .github/workflows/bids-validation.yml#L33 - You have an error in your yaml syntax on line 33

This blocks the import-openneuro workflow from completing because publication requests require passing BIDS validation CI.

Root Cause

In backend/src/services/github.ts, the deployWorkflows() function defines workflow YAML as JavaScript template literals (backtick strings). Two places use \n which JavaScript interprets as a literal newline character instead of the two-character sequence \n:

  1. Line 619: find -printf '/%P\n' - the \n becomes a real newline, splitting the YAML line and breaking block scalar indentation
  2. Line 637: jq split("\n") - same issue

The fix is to escape as \\n (which produces literal \n in the output).

Affected Repos

Repos that had workflows deployed after PR #271:

  • nm000130
  • nm000131
  • on003825

These repos need their workflows redeployed after the fix.

Introduced In

PR #271 ("Fix BIDS CI failures from annex pointers and branch naming") added the annex pointer filtering logic containing these \n patterns.

Activity

  1. added 3 commits that reference this issue on Mar 14, 2026
    a3bb9b2
    95e0470
    581f7a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions