cisagov / skeleton-generic

A generic skeleton project for quickly getting a new cisagov project started.
Creative Commons Zero v1.0 Universal
14 stars 11 forks source link

Set the default `shell` for all `run` steps in the `build` workflow #162

Closed mcdonnnj closed 6 months ago

mcdonnnj commented 8 months ago

๐Ÿ—ฃ Description

This pull request sets a default shell value for any run steps in the build workflow. The default we provide will use bash with the errtrace, nounset, errexit, and pipefail options as well as enabling debug tracing.

๐Ÿ’ญ Motivation and context

This sets up the workflow to run akin to how we configure our shell scripts (bash with nounset, errexit, and pipefail). This should improve the behavior of any run steps in our GitHub Actions workflow.

๐Ÿงช Testing

Automated tests pass. I also confirmed that I see debug tracing in the Actions log for any run steps.

โœ… Pre-approval checklist