Closed terabytesoftw closed 4 years ago
Hi, GitHub actions detection seems to be working as expected - here you can see dump of detected properties from actual Github Actions workflow: https://github.com/OndraM/ci-detector/runs/771770893?check_suite_focus=true#step:6:6
Isn't possible the env variables are not available in the script? You can try running "env" command in github workflow to see the actual environment variables.
I investigated your workflow a bit more, and find the issue.
You are running infection using sudo. However when using sudo, GitHub Actions does not set required environment variables for the sudo shell, making CI detection impossible.
I suggest not to run commands via sudo in your workflow. Unfortunately, this is behavior of GH actions and there is nothing I can do about it, sorry.
No detect CI github-actions in testing muting infection.