actions / starter-workflows

Accelerating new GitHub Actions workflows
https://github.com/features/actions
Other
8.59k stars 5.07k forks source link

CodeQL - Specify bash shell so that it doesn't fail if switching to 'windows` #2392

Closed felickz closed 1 month ago

felickz commented 1 month ago

This CodeQL configuration template defaults to mac/ubuntu runners. If you end up needing to run manual build for csharp and this requires you switch the runs-on to windows-<any> - you will get the following error due to PowerShell being invoked instead of bash:

image