Skip to content

Comments

Use op cli installer to enable Windows support#109

Merged
volodymyrZotov merged 10 commits intomainfrom
vzt/use-op-cli-installer
Aug 13, 2025
Merged

Use op cli installer to enable Windows support#109
volodymyrZotov merged 10 commits intomainfrom
vzt/use-op-cli-installer

Conversation

@volodymyrZotov
Copy link
Contributor

@volodymyrZotov volodymyrZotov commented Aug 5, 2025

This PR started to use op-cli-installer package as dependency, to install CLI. This enables Windows support for load-secrets-action.

Main changes

  1. Use installCliOnGithubActionRunner function from op-cli-installer instead of install-cli.sh script.
  2. configure action is refactored and now is written in pure JS, which helps wot enable Windows support.
  3. Integration tests in github action piepeline are refactored to run on all runners and using different CLI versions (latest stable, latest beta, specific stable/beta, etc). Also test checks that confiture action set env vars properly and verifies installed CLI version.

Resolves #46

@volodymyrZotov volodymyrZotov force-pushed the vzt/use-op-cli-installer branch from 05e2fe3 to 96de656 Compare August 5, 2025 16:45
@volodymyrZotov volodymyrZotov marked this pull request as ready for review August 5, 2025 20:58
Copy link
Member

@edif2008 edif2008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review: ✅

Things look much nicer and easier to maintain long term. Thank you for this effort.
I appreciate you switching the configuration piece of the action into Node as well to keep it all the same.

Functional review: ✅

This is tricky to test locally with act, but since all the pipelines work (including the Windows ones), I'm confident on these changes.

Other notes

Since this is quite a large change, do you consider it's worth making a v3? Or are we confident that it has little to no breaking changes so that we can still use v2?

This should be properly tested in op-cli-installer package. Current test will confirm that secrets are loaded correctly.
@volodymyrZotov volodymyrZotov force-pushed the vzt/use-op-cli-installer branch from d925677 to 40b6ef7 Compare August 9, 2025 00:29
…ets-action. Remove type: "module" from package.json so ncc builds CommonJS configure action which is required
@volodymyrZotov volodymyrZotov force-pushed the vzt/use-op-cli-installer branch from c92c146 to 596d800 Compare August 13, 2025 16:59
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.

load-secrets-action doesn't work on windows

2 participants