Skip to content

Pass to bash instead of running the string as arguments#2

Open
Profpatsch wants to merge 6 commits into
webiny:masterfrom
Profpatsch:master
Open

Pass to bash instead of running the string as arguments#2
Profpatsch wants to merge 6 commits into
webiny:masterfrom
Profpatsch:master

Conversation

@Profpatsch

Copy link
Copy Markdown

This makes the action behave similarly to the run in step, which is passed to bash -e.
I decided I wanted to have more security by default, so I use -euo pipefail, but that could be changed.

Iff this is merged, this should be a new major version of the action.

Profpatsch and others added 5 commits May 12, 2022 12:07
We need it to be compatible with other actions.
Plus we set `-euo pipefail` by default to prevent dumb accidents.
Otherwise it fails on

```
 /etc/bashrc: line 4: __ETC_BASHRC_SOURCED: unbound variable
```
-euo will stumble on unbound variables in /etc/profile for some
reason.

I thought --noprofile would disable that file, but looks like it’s
sourced nonetheless? This is all very bad.
@jirutka

jirutka commented Oct 3, 2022

Copy link
Copy Markdown
Contributor

@adrians5j, can you please merge this? This action is currently quite hard to use, it doesn’t behave as expected.

@adrians5j

Copy link
Copy Markdown
Member

Hey @jirutka , sorry for the delay.

The problem with the proposed changes is that the changes was made in built code, not in source. We should address that first, then we can merge.

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.

3 participants