From 39e0167e49c8c6a2374f884adfb623ec94ea6000 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 20 Feb 2025 18:59:27 +0000 Subject: [PATCH] feat(github-actions): allow for WSL firewall interface to be configurable This will be useful for e.g. 2025 Windows images that seemingly have a different interface name. --- github-actions/setup-wsl/action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/github-actions/setup-wsl/action.yml b/github-actions/setup-wsl/action.yml index 672964dee..9ae79be30 100644 --- a/github-actions/setup-wsl/action.yml +++ b/github-actions/setup-wsl/action.yml @@ -2,6 +2,12 @@ name: 'Setup WSL' description: 'Sets up WSL for the current Windows VM' author: 'Angular' +inputs: + wsl_firewall_interface: + description: Interface alias for the WSL firewall. + default: 'vEthernet (WSL)' + required: false + outputs: cmd_path: description: WSL unix path pointing to `cmd.exe` of the host system. @@ -70,7 +76,7 @@ runs: - name: Disable WSL <> Host virtual network firewall (to allow for testing) shell: powershell - run: Set-NetFirewallProfile -Profile Public -DisabledInterfaceAliases "vEthernet (WSL)" + run: Set-NetFirewallProfile -Profile Public -DisabledInterfaceAliases "${{inputs.wsl_firewall_interface}}" - name: Create link to WSL drive shell: powershell