Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Profpatsch
Copy link

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
Copy link
Contributor

jirutka commented Oct 3, 2022

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

@adrians5j
Copy link
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.

None yet

3 participants