Add linters to CI pipeline #6
Annotations
9 errors
run-lint:
html/scan.php#L21
Variable $UID might not be defined.
|
run-lint:
html/scan.php#L24
Variable $UID might not be defined.
|
MissingFile:
../../../github/workspace/html/scan.php#L6
../../../github/workspace/html/scan.php:6:1: MissingFile: Cannot find file /action/lib/.automation/config.php to include (see https://psalm.dev/107)
|
PossiblyUndefinedArrayOffset:
../../../github/workspace/html/scan.php#L8
../../../github/workspace/html/scan.php:8:5: PossiblyUndefinedArrayOffset: Possibly undefined array key $_SERVER['REQUEST_METHOD'] on array{APP_DEBUG?: bool|string, APP_ENV?: string, AUTH_TYPE?: non-empty-string, CONTENT_LENGTH?: string, CONTENT_TYPE?: string, DOCUMENT_ROOT?: non-empty-string, FCGI_ROLE?: non-empty-string, GATEWAY_INTERFACE?: non-empty-string, HOME?: non-empty-string, HTTPS?: string, HTTP_ACCEPT?: non-empty-string, HTTP_ACCEPT_CHARSET?: non-empty-string, HTTP_ACCEPT_ENCODING?: non-empty-string, HTTP_ACCEPT_LANGUAGE?: non-empty-string, HTTP_CACHE_CONTROL?: non-empty-string, HTTP_CDN_LOOP?: non-empty-string, HTTP_CF_CONNECTING_IP?: non-empty-string, HTTP_CF_IPCOUNTRY?: non-empty-string, HTTP_CF_VISITOR?: non-empty-string, HTTP_CLIENT_IP?: non-empty-string, HTTP_CONNECTION?: non-empty-string, HTTP_COOKIE?: non-empty-string, HTTP_DNT?: non-empty-string, HTTP_HOST?: non-empty-string, HTTP_PRIORITY?: non-empty-string, HTTP_REFERER?: non-empty-string, HTTP_SEC_CH_UA?: non-empty-string, HTTP_SEC_CH_UA_MOBILE?: non-empty-string, HTTP_SEC_CH_UA_PLATFORM?: non-empty-string, HTTP_SEC_FETCH_DEST?: non-empty-string, HTTP_SEC_FETCH_MODE?: non-empty-string, HTTP_SEC_FETCH_SITE?: non-empty-string, HTTP_SEC_FETCH_USER?: non-empty-string, HTTP_UPGRADE_INSECURE_REQUESTS?: non-empty-string, HTTP_USER_AGENT?: non-empty-string, HTTP_X_FORWARDED_FOR?: non-empty-string, HTTP_X_FORWARDED_PROTO?: non-empty-string, HTTP_X_REAL_IP?: non-empty-string, ORIG_PATH_INFO?: non-empty-string, PATH?: non-empty-string, PATH_INFO?: non-empty-string, PATH_TRANSLATED?: non-empty-string, PHP_AUTH_DIGEST?: non-empty-string, PHP_AUTH_PW?: non-empty-string, PHP_AUTH_USER?: non-empty-string, PHP_SELF?: non-empty-string, QUERY_STRING?: string, REDIRECT_REMOTE_USER?: non-empty-string, REDIRECT_STATUS?: non-empty-string, REMOTE_ADDR?: non-empty-string, REMOTE_HOST?: non-empty-string, REMOTE_PORT?: string, REMOTE_USER?: non-empty-string, REQUEST_METHOD?: non-empty-string, REQUEST_SCHEME?: non-empty-string, REQUEST_TIME?: int<1727817435, max>, REQUEST_TIME_FLOAT?: float, REQUEST_URI?: non-empty-string, SCRIPT_FILENAME?: non-empty-string, SCRIPT_NAME?: non-empty-string, SERVER_ADDR?: non-empty-string, SERVER_ADMIN?: non-empty-string, SERVER_NAME?: non-empty-string, SERVER_PORT?: non-empty-string, SERVER_PROTOCOL?: non-empty-string, SERVER_SIGNATURE?: non-empty-string, SERVER_SOFTWARE?: non-empty-string, USER?: non-empty-string, argc?: int<1, max>, argv?: non-empty-list<string>, ...<non-empty-string, string>} (see https://psalm.dev/167)
|
PossiblyUndefinedArrayOffset:
../../../github/workspace/html/scan.php#L15
../../../github/workspace/html/scan.php:15:16: PossiblyUndefinedArrayOffset: Possibly undefined array key $_SERVER['SERVER_PROTOCOL'] on array{APP_DEBUG?: bool|string, APP_ENV?: string, AUTH_TYPE?: string, CONTENT_LENGTH?: string, CONTENT_TYPE?: string, DOCUMENT_ROOT?: string, FCGI_ROLE?: string, GATEWAY_INTERFACE?: string, HOME?: string, HTTPS?: string, HTTP_ACCEPT?: string, HTTP_ACCEPT_CHARSET?: string, HTTP_ACCEPT_ENCODING?: string, HTTP_ACCEPT_LANGUAGE?: string, HTTP_CACHE_CONTROL?: string, HTTP_CDN_LOOP?: string, HTTP_CF_CONNECTING_IP?: string, HTTP_CF_IPCOUNTRY?: string, HTTP_CF_VISITOR?: string, HTTP_CLIENT_IP?: string, HTTP_CONNECTION?: string, HTTP_COOKIE?: string, HTTP_DNT?: string, HTTP_HOST?: string, HTTP_PRIORITY?: string, HTTP_REFERER?: string, HTTP_SEC_CH_UA?: string, HTTP_SEC_CH_UA_MOBILE?: string, HTTP_SEC_CH_UA_PLATFORM?: string, HTTP_SEC_FETCH_DEST?: string, HTTP_SEC_FETCH_MODE?: string, HTTP_SEC_FETCH_SITE?: string, HTTP_SEC_FETCH_USER?: string, HTTP_UPGRADE_INSECURE_REQUESTS?: string, HTTP_USER_AGENT?: string, HTTP_X_FORWARDED_FOR?: string, HTTP_X_FORWARDED_PROTO?: string, HTTP_X_REAL_IP?: string, ORIG_PATH_INFO?: string, PATH?: string, PATH_INFO?: string, PATH_TRANSLATED?: string, PHP_AUTH_DIGEST?: string, PHP_AUTH_PW?: string, PHP_AUTH_USER?: string, PHP_SELF?: string, QUERY_STRING?: string, REDIRECT_REMOTE_USER?: string, REDIRECT_STATUS?: string, REMOTE_ADDR?: string, REMOTE_HOST?: string, REMOTE_PORT?: string, REMOTE_USER?: string, REQUEST_METHOD?: string, REQUEST_SCHEME?: string, REQUEST_TIME?: int<1727817435, max>|string, REQUEST_TIME_FLOAT?: float|string, REQUEST_URI?: string, SCRIPT_FILENAME?: string, SCRIPT_NAME?: string, SERVER_ADDR?: string, SERVER_ADMIN?: string, SERVER_NAME?: string, SERVER_PORT?: string, SERVER_PROTOCOL?: string, SERVER_SIGNATURE?: string, SERVER_SOFTWARE?: string, USER?: string, argc?: int<1, max>|string, argv?: non-empty-list<string>|string, ...<non-empty-string, string>} (see https://psalm.dev/167)
|
UndefinedGlobalVariable:
../../../github/workspace/html/scan.php#L21
../../../github/workspace/html/scan.php:21:49: UndefinedGlobalVariable: Cannot find referenced variable $UID in global scope (see https://psalm.dev/127)
|
ForbiddenCode:
../../../github/workspace/html/scan.php#L24
../../../github/workspace/html/scan.php:24:25: ForbiddenCode: Unsafe shell_exec (see https://psalm.dev/002)
|
UndefinedGlobalVariable:
../../../github/workspace/html/scan.php#L24
../../../github/workspace/html/scan.php:24:49: UndefinedGlobalVariable: Cannot find referenced variable $UID in global scope (see https://psalm.dev/127)
|
PossiblyUndefinedArrayOffset:
../../../github/workspace/html/scan.php#L29
../../../github/workspace/html/scan.php:29:16: PossiblyUndefinedArrayOffset: Possibly undefined array key $_SERVER['SERVER_PROTOCOL'] on array{APP_DEBUG?: bool|string, APP_ENV?: string, AUTH_TYPE?: string, CONTENT_LENGTH?: string, CONTENT_TYPE?: string, DOCUMENT_ROOT?: string, FCGI_ROLE?: string, GATEWAY_INTERFACE?: string, HOME?: string, HTTPS?: string, HTTP_ACCEPT?: string, HTTP_ACCEPT_CHARSET?: string, HTTP_ACCEPT_ENCODING?: string, HTTP_ACCEPT_LANGUAGE?: string, HTTP_CACHE_CONTROL?: string, HTTP_CDN_LOOP?: string, HTTP_CF_CONNECTING_IP?: string, HTTP_CF_IPCOUNTRY?: string, HTTP_CF_VISITOR?: string, HTTP_CLIENT_IP?: string, HTTP_CONNECTION?: string, HTTP_COOKIE?: string, HTTP_DNT?: string, HTTP_HOST?: string, HTTP_PRIORITY?: string, HTTP_REFERER?: string, HTTP_SEC_CH_UA?: string, HTTP_SEC_CH_UA_MOBILE?: string, HTTP_SEC_CH_UA_PLATFORM?: string, HTTP_SEC_FETCH_DEST?: string, HTTP_SEC_FETCH_MODE?: string, HTTP_SEC_FETCH_SITE?: string, HTTP_SEC_FETCH_USER?: string, HTTP_UPGRADE_INSECURE_REQUESTS?: string, HTTP_USER_AGENT?: string, HTTP_X_FORWARDED_FOR?: string, HTTP_X_FORWARDED_PROTO?: string, HTTP_X_REAL_IP?: string, ORIG_PATH_INFO?: string, PATH?: string, PATH_INFO?: string, PATH_TRANSLATED?: string, PHP_AUTH_DIGEST?: string, PHP_AUTH_PW?: string, PHP_AUTH_USER?: string, PHP_SELF?: string, QUERY_STRING?: string, REDIRECT_REMOTE_USER?: string, REDIRECT_STATUS?: string, REMOTE_ADDR?: string, REMOTE_HOST?: string, REMOTE_PORT?: string, REMOTE_USER?: string, REQUEST_METHOD?: string, REQUEST_SCHEME?: string, REQUEST_TIME?: int<1727817435, max>|string, REQUEST_TIME_FLOAT?: float|string, REQUEST_URI?: string, SCRIPT_FILENAME?: string, SCRIPT_NAME?: string, SERVER_ADDR?: string, SERVER_ADMIN?: string, SERVER_NAME?: string, SERVER_PORT?: string, SERVER_PROTOCOL?: string, SERVER_SIGNATURE?: string, SERVER_SOFTWARE?: string, USER?: string, argc?: int<1, max>|string, argv?: non-empty-list<string>|string, ...<non-empty-string, string>} (see https://psalm.dev/167)
|