Skip to content

Repository files navigation

github-openvpn-connect-action

Github action for connecting to OpenVPN server.

Inputs

General Inputs

NameDescriptionRequired
config_fileLocation of OpenVPN client config fileyes

Authentication Inputs

Supported authentication methods:

  • Username & password auth
  • Client certificate auth
  • Both of them
NameDescriptionRequired when
usernameUsernameUsername-password auth
passwordPasswordUsername-password auth
client_keyLocal peer's private keyClient certificate auth
tls_auth_keyPre-shared secret for TLS-auth HMAC signatureOptional
ca_certCertificate authorityOptional
client_certClient certificateOptional

Note: It is strongly recommended that you provide all credentials via encrypted secrets.

Usage

  • Create client configuration file based on the official sample. It is recommended to use inline certificates to include them directly in configuration file like this.
  • Usage in your workflow is like following:
 - name: Checkoutuses: actions/checkout@v2
- name: Install OpenVPNrun: | sudo apt update sudo apt install -y openvpn openvpn-systemd-resolved - name: Connect to VPNuses: "kota65535/github-openvpn-connect-action@v1"with:
config_file: ./github/workflows/client.ovpnusername: ${{ secrets.OVPN_USERNAME }}password: ${{ secrets.OVPN_PASSWORD }}client_key: ${{ secrets.OVPN_CLIENT_KEY }}ca_cert: ${{ secrets.OVPN_CA_CERT }}client_cert: ${{ secrets.OVPN_CLIENT_CERT }}tls_auth_key: ${{ secrets.OVPN_TLS_AUTH_KEY }}
- name: Build somethingrun: ./gradlew clean build# The openvpn process is automatically terminated in post-action phase

License

MIT

About

Github action for connecting to OpenVPN server - fork for ca_cert and client_cert

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages