Skip to main content
June 18, 2026
Question

pre-commit hooks unable to access env variables with environments feature

  • June 18, 2026
  • 0 replies
  • 15 views

Hi,

We're trying to adopt the new Environments feature, which is working well overall. However, we've encountered an issue with pre-commit hooks not being able to access the required environment variables.

Our pre-commit hooks require environment variables to be set. While the Environments feature itself functions correctly, the pre-commit hooks fail with an error indicating that the required environment variables are not available.

This is blocking us from fully adopting the feature.

Is this a known issue? We haven't found a workaround yet and would appreciate any guidance.

Thanks!