-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
The docker container seem to be broken as gitlab job with config
socket:
image:
name: socketdev/cli:latest
script:
- |
socketcli \
--target-path $CI_PROJECT_DIR \
--scm gitlab \
--pr-number ${CI_MERGE_REQUEST_IID:-0}
fails on following error:
usage: socketcli [-h] [--api-token <token>] [--repo <owner/repo>]
[--repo-is-public] [--branch <name>] [--integration <type>]
[--owner <name>] [--pr-number <number>]
[--commit-message <message>] [--commit-sha <sha>]
[--committers [<name> ...]] [--target-path <path>]
[--sbom-file <path>] [--license-file-name <string>]
[--save-submitted-files-list <path>]
[--save-manifest-tar <path>] [--files <json>]
[--sub-path <path>] [--workspace-name <name>]
[--excluded-ecosystems EXCLUDED_ECOSYSTEMS]
[--default-branch] [--pending-head] [--generate-license]
[--enable-debug] [--enable-json] [--enable-sarif]
[--disable-overview] [--exclude-license-details]
[--disable-security-issue] [--ignore-commit-files]
[--disable-blocking] [--enable-diff] [--scm <type>]
[--timeout <seconds>] [--allow-unverified]
[--include-module-folders] [--reach]
[--reach-version <version>] [--reach-timeout <seconds>]
[--reach-memory-limit <mb>] [--reach-ecosystems <list>]
[--reach-exclude-paths <list>] [--reach-min-severity <level>]
[--reach-skip-cache] [--reach-disable-analytics]
[--reach-disable-analysis-splitting]
[--reach-output-file <path>] [--reach-concurrency <number>]
[--reach-additional-params <param> [<param> ...]]
[--only-facts-file] [--version]
socketcli: error: unrecognized arguments: sh -c if [ -x /usr/local/bin/bash ]; then
exec /usr/local/bin/bash
elif [ -x /usr/bin/bash ]; then
exec /usr/bin/bash
elif [ -x /bin/bash ]; then
exec /bin/bash
elif [ -x /usr/local/bin/sh ]; then
exec /usr/local/bin/sh
elif [ -x /usr/bin/sh ]; then
exec /usr/bin/sh
elif [ -x /bin/sh ]; then
exec /bin/sh
elif [ -x /busybox/sh ]; then
exec /busybox/sh
else
echo shell not found
exit 1
fi
Affected versions >= 2.2.32
Metadata
Metadata
Assignees
Labels
No labels