GitHubSecurityLab / actions-permissions

GitHub token permissions Monitor and Advisor actions
MIT License
256 stars 20 forks source link

Action fails on `macos-13` runner #18

Closed andreiz closed 1 year ago

andreiz commented 1 year ago

Seems like it tries to sudo after pip finishes installing the packages and that fails due to not having a terminal.

2023-07-13T17:39:45.4122390Z Successfully installed Brotli-1.0.9 Jinja2-3.1.2 MarkupSafe-2.1.3 Werkzeug-2.3.6 asgiref-3.5.2 cffi-1.15.1 charset-normalizer-3.2.0 click-8.1.5 cryptography-38.0.4 flask-2.2.5 h11-0.14.0 h2-4.1.0 hpack-4.0.0 hyperframe-6.0.1 idna-3.4 itsdangerous-2.1.2 kaitaistruct-0.10 ldap3-2.9.1 mitmproxy-9.0.1 mitmproxy-wireguard-0.1.23 msgpack-1.0.5 passlib-1.7.4 protobuf-4.23.4 publicsuffix2-2.20191221 pyOpenSSL-22.1.0 pyasn1-0.5.0 pycparser-2.21 pyparsing-3.0.9 pyperclip-1.8.2 requests-2.31.0 ruamel.yaml-0.17.32 ruamel.yaml.clib-0.2.7 sortedcontainers-2.4.0 tornado-6.3.2 urllib3-2.0.3 urwid-2.1.2 wsproto-1.2.0 zstandard-0.19.0
2023-07-13T17:39:45.4132700Z 
2023-07-13T17:39:46.4097250Z sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
2023-07-13T17:39:46.4473890Z sudo: a password is required
2023-07-13T17:39:46.4512320Z 
2023-07-13T17:39:46.4550770Z 
2023-07-13T17:39:46.4661450Z ##[error]Exited with code 1
JarLob commented 1 year ago

I was able to reproduce it with macos-13 only. Is it the same in your case?

andreiz commented 1 year ago

I was able to reproduce it with macos-13 only. Is it the same in your case?

Yep, macos-13