socketdev/Socket Basics Security Scanner

Comprehensive security scanning with SAST, secrets, container scanning, and more.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
workspaceWorkspace directory to scan (defaults to GITHUB_WORKSPACE)no""
changed_filesDiff-only mode: scope every scanner (SAST/OpenGrep, secrets, containers) to changed files only, instead of the whole repository. Accepts a comma-separated file list, a commit hash, 'auto' (diffs against the PR base branch in CI, else staged changes), 'pr' (diff against GITHUB_BASE_REF), or 'current-commit'. For PR/'auto' modes, check out with actions/checkout fetch-depth: 0 so the base branch is available. When the diff resolves to no existing files (e.g. a delete-only PR) the scanners are skipped rather than scanning the whole repo.no""
scan_filesExplicit comma-separated list of files to scan. Scopes SAST/OpenGrep, secret, and container scans to just these files. Used when changed_files is not set; changed_files takes precedence when both are provided.no""
socket_orgSocket organization slug (required for Enterprise features)no""
socket_security_api_keySocket Security API key (required for Enterprise features and Dashboard configuration)no""
github_tokenGitHub token for PR comments and API accessno""
GITHUB_API_URLGithub Api Urlno""
all_languages_enabledEnable SAST for all supported languagesnofalse
all_rules_enabledRun all bundled SAST rules regardless of language filtersnofalse
c_disabled_rulesComma-separated list of C SAST rules to disableno""
c_enabled_rulesComma-separated list of C SAST rules to enable (default: high-confidence rules)noc-buffer-overflow,c-format-string-vulnerability,c-command-injection,c-sql-injection,c-use-after-free,c-hardcoded-secrets,c-weak-crypto,c-ssl-issues
c_sast_enabledEnable C SAST scanningnofalse
container_imagesComma-separated list of container images to scan (auto-enables image scanning)no""
custom_sast_rule_pathRelative path to custom SAST rules directory (relative to workspace if set, otherwise cwd)nocustom_rules
cpp_disabled_rulesComma-separated list of C++ SAST rules to disableno""
cpp_enabled_rulesComma-separated list of C++ SAST rules to enable (default: high-confidence rules)noc-buffer-overflow,c-format-string-vulnerability,c-command-injection,c-sql-injection,c-use-after-free,c-hardcoded-secrets,c-weak-crypto,c-ssl-issues,cpp-unsafe-cast,cpp-memory-management
cpp_sast_enabledEnable C++ SAST scanningnofalse
csharp_disabled_rulesComma-separated list of C# SAST rules to disableno""
csharp_enabled_rulesComma-separated list of C# SAST rules to enable (default: high-confidence rules)nodotnet-sql-injection,dotnet-command-injection,dotnet-code-injection,dotnet-unsafe-deserialization,dotnet-ldap-injection,dotnet-hardcoded-credentials,dotnet-ssl-bypass,dotnet-xxe-vulnerability,dotnet-xpath-injection
csharp_sast_enabledEnable C# SAST scanningnofalse
disable_all_secretsDisable all secret scanning featuresnofalse
dockerfilesComma-separated list of Dockerfiles to scan (auto-enables Dockerfile scanning)no""
dotnet_disabled_rulesComma-separated list of .NET SAST rules to disableno""
dotnet_enabled_rulesComma-separated list of .NET SAST rules to enable (default: high-confidence rules)nodotnet-sql-injection,dotnet-command-injection,dotnet-code-injection,dotnet-unsafe-deserialization,dotnet-ldap-injection,dotnet-hardcoded-credentials,dotnet-ssl-bypass,dotnet-xxe-vulnerability,dotnet-xpath-injection
dotnet_sast_enabledEnable .NET SAST scanningnofalse
elixir_disabled_rulesComma-separated list of Elixir SAST rules to disableno""
elixir_enabled_rulesComma-separated list of Elixir SAST rules to enable (default: high-confidence rules)noelixir-code-injection,elixir-sql-injection,elixir-command-injection,elixir-unsafe-deserialization,elixir-hardcoded-secrets,elixir-phoenix-ecto-injection
elixir_sast_enabledEnable Elixir SAST scanningnofalse
erlang_sast_enabledEnable Erlang SAST scanningnofalse
go_disabled_rulesComma-separated list of Go SAST rules to disableno""
go_enabled_rulesComma-separated list of Go SAST rules to enable (default: high-confidence rules)nogo-hardcoded-credentials,go-bind-all-interfaces,go-unsafe-usage,go-ssh-insecure-ignore-host-key,go-profiling-endpoint-exposed,go-decompression-bomb,go-sql-format-string
go_sast_enabledEnable Go SAST scanningnofalse
golang_sast_enabledEnable Golang SAST scanningnofalse
java_disabled_rulesComma-separated list of Java SAST rules to disableno""
java_enabled_rulesComma-separated list of Java SAST rules to enable (default: high-confidence rules)nojava-sql-injection,java-unsafe-deserialization,java-command-injection,java-ldap-injection,java-hardcoded-credentials,java-weak-crypto-md5,java-weak-crypto-sha1,java-xxe-vulnerability,java-ssl-bypass,java-weak-ssl-version,java-jndi-injection,java-el-injection
java_sast_enabledEnable Java SAST scanningnofalse
javascript_disabled_rulesComma-separated list of JavaScript/TypeScript SAST rules to disableno""
javascript_enabled_rulesComma-separated list of JavaScript/TypeScript SAST rules to enable (default: high-confidence rules)nojs-eval-usage,js-sql-injection,js-command-injection,js-prototype-pollution,js-xss-innerhtml,js-path-traversal,js-tls-reject-unauthorized-false,js-weak-crypto-md5
javascript_sast_enabledEnable JavaScript/TypeScript SAST scanningnofalse
sast_ignore_overridesComma-separated list of SAST ignore overrides in rule_id or rule_id:path formatno""
jira_api_tokenJira Api Tokenno""
jira_emailJira Emailno""
kotlin_disabled_rulesComma-separated list of Kotlin SAST rules to disableno""
kotlin_enabled_rulesComma-separated list of Kotlin SAST rules to enable (default: high-confidence rules)nokotlin-sql-injection,kotlin-command-injection,kotlin-code-injection,kotlin-unsafe-deserialization,kotlin-hardcoded-secrets,kotlin-ssl-bypass,kotlin-xxe-vulnerability,kotlin-ldap-injection
kotlin_sast_enabledEnable Kotlin SAST scanningnofalse
ms_sentinel_keyMs Sentinel Keyno""
ms_sentinel_workspace_idMs Sentinel Workspace Idno""
msteams_webhook_urlMS Teams incoming webhook URL (also reads MSTEAMS_WEBHOOK_URL or INPUT_MSTEAMS_WEBHOOK_URL)no""
notification_methodNotification method for TruffleHog (e.g., console, slack)no""
php_disabled_rulesComma-separated list of PHP SAST rules to disableno""
php_enabled_rulesComma-separated list of PHP SAST rules to enable (default: high-confidence rules)nophp-code-injection,php-sql-injection,php-command-injection,php-unsafe-deserialization,php-ldap-injection,php-file-inclusion,php-xxe-vulnerability,php-hardcoded-secrets,php-path-traversal
php_sast_enabledEnable PHP SAST scanningnofalse
projectProjectno""
python_disabled_rulesComma-separated list of Python SAST rules to disableno""
python_enabled_rulesComma-separated list of Python SAST rules to enable (default: high-confidence rules)nopython-exec-used,python-bad-file-permissions,python-hardcoded-password-string,python-eval-usage,python-request-without-cert-validation,python-ssl-bad-version,python-subprocess-shell-true,python-start-process-with-shell,python-sql-injection-format,python-flask-debug-true,python-jinja2-autoescape-false
python_sast_enabledEnable Python SAST scanningnofalse
ruby_disabled_rulesComma-separated list of Ruby SAST rules to disableno""
ruby_enabled_rulesComma-separated list of Ruby SAST rules to enable (default: high-confidence rules)noruby-eval-injection,ruby-command-injection,ruby-sql-injection,ruby-unsafe-deserialization,ruby-hardcoded-secrets,ruby-ssl-verification-bypass,ruby-rails-find-by-sql-injection,ruby-rails-unsafe-constantize,ruby-xxe-vulnerability
ruby_sast_enabledEnable Ruby SAST scanningnofalse
rust_disabled_rulesComma-separated list of Rust SAST rules to disableno""
rust_enabled_rulesComma-separated list of Rust SAST rules to enable (default: high-confidence rules)norust-command-injection,rust-unsafe-deserialization,rust-sql-injection,rust-hardcoded-secrets,rust-insecure-tls,rust-buffer-overflow-potential
rust_sast_enabledEnable Rust SAST scanningnofalse
scala_disabled_rulesComma-separated list of Scala SAST rules to disableno""
scala_enabled_rulesComma-separated list of Scala SAST rules to enable (default: high-confidence rules)noscala-sql-injection,scala-code-injection,scala-command-injection,scala-unsafe-deserialization,scala-hardcoded-secrets,scala-ssl-bypass,scala-slick-sql-injection
scala_sast_enabledEnable Scala SAST scanningnofalse
secret_scanning_enabledEnable secret scanningnofalse
serverServerno""
slack_webhook_urlSlack webhook URL (also reads SLACK_WEBHOOK_URL or INPUT_SLACK_WEBHOOK_URL)no""
socket_additional_paramsAdditional CLI params for 'socket scan reach' (comma or space separated). Also reads SOCKET_ADDITIONAL_PARAMSno""
socket_tier_1_enabledEnable Socket Tier 1 reachability analysisnofalse
sumologic_endpointSumologic Endpointno""
swift_disabled_rulesComma-separated list of Swift SAST rules to disableno""
swift_enabled_rulesComma-separated list of Swift SAST rules to enable (default: high-confidence rules)noswift-sql-injection,swift-command-injection,swift-unsafe-deserialization,swift-hardcoded-secrets,swift-ssl-bypass,swift-insecure-urlsession,swift-certificate-pinning-bypass
swift_sast_enabledEnable Swift SAST scanningnofalse
trivy_disabled_rulesComma-separated list of Trivy rules to disable. Trivy-backed scanning is temporarily unavailable in the pre-built GitHub Action image.no""
trivy_image_scanning_disabledDisable Trivy image scanning. Trivy-backed scanning is temporarily unavailable in the pre-built GitHub Action image.nofalse
trivy_notification_methodNotification method for Trivy (e.g., console, slack). Trivy-backed scanning is temporarily unavailable in the pre-built GitHub Action image.no""
trivy_vuln_enabledEnable Trivy vulnerability scanning for all supported language ecosystems. Trivy-backed scanning is temporarily unavailable in the pre-built GitHub Action image.nofalse
trufflehog_exclude_dirComma-separated list of directories to exclude from secret scanningno""
trufflehog_show_unverifiedShow unverified secrets in TruffleHog resultsnofalse
use_custom_sast_rulesUse custom SAST rules instead of bundled rules (falls back to bundled rules for languages without custom rules)nofalse
webhook_urlGeneric webhook URL for WebhookNotifierno""
pr_comment_links_enabledEnable clickable file/line links in PR commentsnotrue
pr_comment_collapse_enabledEnable collapsible sections in PR commentsnotrue
pr_comment_collapse_non_criticalAuto-collapse non-critical findings (critical stays expanded)notrue
pr_comment_code_fencing_enabledEnable language-aware code fencing for trace outputnotrue
pr_comment_show_rule_namesShow explicit rule names for each findingnotrue
pr_labels_enabledAdd severity-based labels to PRsnotrue
pr_label_criticalLabel name for critical severity findingsnosecurity: critical
pr_label_highLabel name for high severity findingsnosecurity: high
pr_label_mediumLabel name for medium severity findingsnosecurity: medium
pr_label_lowLabel name for low severity findingsnosecurity: low

no outputs