Boostport / setup-cloudflare-warp

Access Cloudflare Zero-Trust applications in GitHub Actions Workflows
Apache License 2.0
35 stars 20 forks source link

Support for multiple virtual networks #102

Open martinhausio opened 1 month ago

martinhausio commented 1 month ago

Hi, we have multiple virtual networks in our setup and would like to be able to choose which one the action will connect to.

the warp-cli supports this by configuring the vnet parameter, passing it the vnet ID prior to connecting

example:

warp-cli vnet abcd1234-12ab-34bc-1234-a12344321a

warp-cli connect

F21 commented 1 month ago

Would you be happy to open a PR to implement this?

I think we can add it as a with parameter in the action's configuration:

uses: Boostport/setup-cloudflare-warp@v1
with:
  organization: your-organization
  auth_client_id: ${{ secrets.CLOUDFLARE_AUTH_CLIENT_ID }}
  auth_client_secret: ${{ secrets.CLOUDFLARE_AUTH_CLIENT_SECRET }}
  vnet: ${{ secrets.CLOUDFLARE_VNET }}