flux2 icon indicating copy to clipboard operation
flux2 copied to clipboard

Flux changes executable mode of bash scripts

Open mibollma opened this issue 2 years ago • 0 comments

Describe the bug

My repository contains bash scripts that are executed locally as well as within the build pipeline. Since I'm developing on Windows I need to make those scripts executable to run on Github Actions using git update-index --chmod=+x ./bin/*.sh.

It seems when flux makes it's bootstrap commit it also removes the executable mode from all bash scripts.

Steps to reproduce

  • Add bash script to repository
  • Make script executable
  • Bootstrap flux

Expected behavior

Flux doesn't touch files outside the supplied path or at least doesn't change the executable mode.

Screenshots and recordings

No response

OS / Distro

Windows 10

Flux version

flux: v0.26.3

Flux check

checking prerequisites flux 0.26.3 <0.27.0 (new version is available, please upgrade) Kubernetes 1.21.9 >=1.20.6-0 checking controllers helm-controller: deployment ready ghcr.io/fluxcd/helm-controller:v0.16.0 kustomize-controller: deployment ready ghcr.io/fluxcd/kustomize-controller:v0.20.2 notification-controller: deployment ready ghcr.io/fluxcd/notification-controller:v0.21.0 source-controller: deployment ready ghcr.io/fluxcd/source-controller:v0.21.2 all checks passed

Git provider

No response

Container Registry provider

No response

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

mibollma avatar Feb 17 '22 13:02 mibollma