redhat-actions / buildah-build

GitHub Action to use 'buildah' to build a container image.
https://github.com/marketplace/actions/buildah-build
MIT License
136 stars 35 forks source link

Check entrypoint array for emptiness #137

Open picsel2 opened 2 months ago

picsel2 commented 2 months ago

Description

The entrypoint array of BuildahConfigSettings might be empty. It makes no sense to push the --entrypoint argument then, thus breaking the convertArrayToStringArg method.

Related Issue(s)

Closes #136

Checklist

Changes made

This adds a check guard against an empty settings.entrypoint array when constructing the buildah config command line.

dannywebster commented 1 month ago

@divyansh42 Would you mind taking a look at this PR, please? 🙏🏻