Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
mike99
2 years agoOccasional Contributor
GitHub action - load-secrets-action - support for Windows Runners?
Hello,
I couldn't find it explicitly stated anywhere - is the load-secrets-action GitHub Action supported on Windows Runners?
I've tried it with the following:
- name: load secrets
id: onepassword
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: "${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}"
My_SQL_USERNAME: "op://my-vault/my-cred/username"
MY_SQL_PASSWORD: "op://my-vault/my-cred/password"
but I get the below error:
```
load secrets
Run 1password/load-secrets-action@v2
with:
export-env: true
unset-previous: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ***
MY_SQL_USERNAME: op://my-vault/my-cred/username
MY_SQL_PASSWORD: op://my-vault/my-cred/password
Authenticated with Service account.
"C:\Program Files\Git\bin\sh.exe" -c C:\a_actions\1password\load-secrets-action\v2/install_cli.sh
/usr/bin/bash: line 1: C:a_actions1passwordload-secrets-actionv2/install_cli.sh: No such file or directory
Error: The process 'C:\Program Files\Git\bin\sh.exe' failed with exit code 127
```
It looks like there's some path mangling going on where C:\a\_actions\1password\load-secrets-action\v2/install_cli.sh
becomes C:a_actions1passwordload-secrets-actionv2/install_cli.sh
.
I have tried installing the CLI as a separate step beforehand in an attempt to avoid the install_cli.sh being invoked, but that doesn't seem to detect the install.
Any advice appreciated.
Thanks,
Mike
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided
3 Replies
- mike99Occasional Contributor
Comment posted on the issue here:
https://github.com/1Password/load-secrets-action/issues/46#issuecomment-2175675405
- mike99Occasional Contributor
Fab, thanks for confirming Michael.
M
- michael_c_1P
1Password Team
Hi Mike,
The load-secrets-action in not currently supported on Windows. Here's a link to the issue on the repo tracking this request, if you want to give that an upvote.
Thanks