Fix invalid YAML indentation in mirror workflow - #112
Conversation
Non-breaking spaces had crept into the indentation, breaking the YAML parser.
github.com/nisar-science-algorithms redirects to the renamed NISAR-Science-Algorithms org, adding an extra hop on every push.
|
@katia-tymofyeyeva @EJFielding
|
Mirroring every branch rejected 11 of 12 pushes since the token lacks workflow scope needed for branches whose .github/workflows differ from the destination. Only main needs to sync to the org repo.
|
Update: restricting the mirror to `main` (last commit) stops the 11 feature-branch rejections, but `main` itself still fails with the same error: ``` This confirms it's purely the `NISAR_TOKEN` scope problem noted above — `main`'s copy of `.github/workflows/gitlab_sync.yml` differs from the destination's, and GitHub blocks the push until the token has `workflow` scope (classic PAT) or `Workflows: Read and write` (fine-grained PAT). No further code change in this repo will resolve it; the secret needs to be regenerated with that scope. |
Summary
Test plan
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/mirror.yml'))"