Set bash -euo pipefail as default shell options in all github actions workflows

Open Beginner friendly
#549 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions
Domain
ci-cd

Research direction

Start by reviewing the main test.yml workflow and the other GitHub Actions workflow files for their current defaults.run shell settings. Apply the requested bash -euo pipefail default consistently, then run the workflows or their available checks to confirm multiline commands, pipelines, and unset variables fail as intended.

Written by the indexing model from the issue text.

Description

We had it at least in the main test.yml script, but it got removed in #433, possibly as a mistake during resolution of a merge conflict.

defaults:
  run:
    # to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
    shell: bash -euo pipefail {0}

@flying-sheep, any reason not do have this?

Dominant language
Python
Stars
89
Forks
17
Avg merge
21h 16m
Merged PRs (30d)
7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scverse/cookiecutter-scverse

All issues in scverse/cookiecutter-scverse

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.