. : O arquivo %USERPROFILE%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 não pode ser
carregado porque a execução de scripts foi desabilitada neste sistema. Para obter mais informações, consulte
about_Execution_Policies em https://go.microsoft.com/fwlink/?LinkID=135170.
No linha:1 caractere:3
+ . '%USERPROFILE%\Documents\WindowsPowerShell\Microsoft.Powe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ErrodeSegurança: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
error: Module not found "./.github/hooks/scripts/pre-tool-guard.ts"
Steps to Reproduce:
This plugin must include:
1.1. Any custom agent, just to trigger the hooks.
1.2.
/hooks/*.tsscripts. Can also be any language, even powershell.1.3.
/hooks.json{ "version": 1, "hooks": { "HOOK NAME HERE, USE ALL FOR MORE DEBUG INFO": [ { "type": "command", "bash": "bun ./.github/hooks/scripts/session-start.ts", "powershell": "bun ./.github/hooks/scripts/session-start.ts", // OR "windows": "powershell.exe -NoLogo -NoProfile -Command \"bun ./.github/hooks/scripts/session-start.ts\"", "cwd": ".", "timeoutSec": 10 } ], } }Warning output:
I have also tried:
cwdproperty but that is also relative to current VSCode directory