Skip to content

Commit 386426b

Browse files
committed
fix: warn when socket_org is missing
Warn when scan results cannot be uploaded because socket_org is unavailable after API key configuration.
1 parent 968b113 commit 386426b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

socket_basics/socket_basics.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,12 @@ def submit_socket_facts(self, socket_facts_path: Path, results: Dict[str, Any])
229229

230230
socket_org = self.config.get('socket_org')
231231
if not socket_org:
232-
logger.debug("No Socket organization configured, skipping full scan submission")
232+
logger.warning(
233+
"No Socket organization configured - scan results will not be uploaded to the dashboard. "
234+
"This typically means your API key is missing the 'socket-basics:read' scope. "
235+
"Please create an API key with the required scopes in Settings > API Tokens "
236+
"in the Socket dashboard (https://socket.dev)."
237+
)
233238
return results
234239

235240
# Import socketdev SDK

0 commit comments

Comments
 (0)