OpenVPN does not allow connection via GitHub macOS runner
Posted: Sun Oct 16, 2022 11:21 pm
Hi friend,
Thank you so much for read this
The problem I am getting is that I can not connect via OpenVPN from GitHub macOS runner using a workflow. I use the same configuration that I use in my computer an that currently works there and that I describe bellow, but when I try to connect to my target domain I am getting 403 instead of 200 as in my computer
What can I do to fix it?
I would really appreciate getting a prompt response from you.
Workflow
-----------
name: Automation
on:
workflow_dispatch:
inputs:
run_automation:
description: "Select if you want automation test"
required: true
default: "true"
paths:
- "Gemfile"
- "fastlane/**"
- "**/*.sh"
- "**/*.yml"
jobs:
#########################
# UI Test
#########################
diagnostics:
runs-on: macos-11
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3.3.0
with:
distribution: 'adopt'
java-version: 11
- name: Install OpenVPN
run: |
sh scripts/open.sh
- name: Kill VPN connection
if: always()
run: |
sudo killall openvpn
.github/vpn/secret.txt
----------------------
username
password
scripts/open.sh
---------------
set -e
brew install openvpn
sudo openvpn --config ".github/vpn/client.ovpn" --auth-user-pass ".github/vpn/secret.txt" --daemon
sudo curl --insecure -so /dev/null -w ''%{http_code}'' https://mytargetdomain.com
sudo curl --insecure -so /dev/null -w ''%{http_code}'' https://www.youtube.com
Thank you so much for read this
The problem I am getting is that I can not connect via OpenVPN from GitHub macOS runner using a workflow. I use the same configuration that I use in my computer an that currently works there and that I describe bellow, but when I try to connect to my target domain I am getting 403 instead of 200 as in my computer
What can I do to fix it?
I would really appreciate getting a prompt response from you.
Workflow
-----------
name: Automation
on:
workflow_dispatch:
inputs:
run_automation:
description: "Select if you want automation test"
required: true
default: "true"
paths:
- "Gemfile"
- "fastlane/**"
- "**/*.sh"
- "**/*.yml"
jobs:
#########################
# UI Test
#########################
diagnostics:
runs-on: macos-11
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3.3.0
with:
distribution: 'adopt'
java-version: 11
- name: Install OpenVPN
run: |
sh scripts/open.sh
- name: Kill VPN connection
if: always()
run: |
sudo killall openvpn
.github/vpn/secret.txt
----------------------
username
password
scripts/open.sh
---------------
set -e
brew install openvpn
sudo openvpn --config ".github/vpn/client.ovpn" --auth-user-pass ".github/vpn/secret.txt" --daemon
sudo curl --insecure -so /dev/null -w ''%{http_code}'' https://mytargetdomain.com
sudo curl --insecure -so /dev/null -w ''%{http_code}'' https://www.youtube.com