github-openvpn-connect-action icon indicating copy to clipboard operation
github-openvpn-connect-action copied to clipboard

auth-user-pass not working

Open Morriz opened this issue 1 year ago • 1 comments

Hi @kota65535, I am not sure auth-user-pass is working correctly. I have the following set:

      with:
          config_file: .github/workflows/client.ovpn
          username: ${{ secrets.OVPN_USERNAME }}
          password: ${{ secrets.OVPN_PASSWORD }}
          client_key: ${{ secrets.OVPN_CLIENT_KEY }}
          tls_auth_key: ${{ secrets.OVPN_TLS_AUTH_KEY }}

which leads to the following transformation in the .ovpn file:

auth-user-pass up.txt
key client.key
tls-auth ta.key 1

which does not take into account the password, as it is still asking for in on TTY. If I remove the auth-user-pass part and add askpass pass.txt with the password in it, then all is good.

Morriz avatar Mar 11 '24 14:03 Morriz

I created PR #65

Morriz avatar Mar 12 '24 08:03 Morriz