Skip to content

Commit b594d47

Browse files
committed
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.
1 parent f807174 commit b594d47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

github-actions/setup-wsl/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: 'Setup WSL'
22
description: 'Sets up WSL for the current Windows VM'
33
author: 'Angular'
44

5+
inputs:
6+
wsl_firewall_interface:
7+
description: Interface alias for the WSL firewall.
8+
default: 'vEthernet (WSL)'
9+
required: false
10+
511
outputs:
612
cmd_path:
713
description: WSL unix path pointing to `cmd.exe` of the host system.
@@ -70,7 +76,7 @@ runs:
7076
7177
- name: Disable WSL <> Host virtual network firewall (to allow for testing)
7278
shell: powershell
73-
run: Set-NetFirewallProfile -Profile Public -DisabledInterfaceAliases "vEthernet (WSL)"
79+
run: Set-NetFirewallProfile -Profile Public -DisabledInterfaceAliases "${{inputs.wsl_firewall_interface}}"
7480

7581
- name: Create link to WSL drive
7682
shell: powershell

0 commit comments

Comments
 (0)