Skip to content

Commit e7e24ee

Browse files
dc-larsenlelia
andauthored
fix: warn when socket_org is missing (#23)
Warn when scan results cannot be uploaded because socket_org is unavailable after API key configuration. Co-authored-by: lelia <2418071+lelia@users.noreply.github.com>
1 parent ff7702c commit e7e24ee

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
@@ -240,7 +240,12 @@ def submit_socket_facts(self, socket_facts_path: Path, results: Dict[str, Any])
240240

241241
socket_org = self.config.get('socket_org')
242242
if not socket_org:
243-
logger.debug("No Socket organization configured, skipping full scan submission")
243+
logger.warning(
244+
"No Socket organization configured - scan results will not be uploaded to the dashboard. "
245+
"This typically means your API key is missing the 'socket-basics:read' scope. "
246+
"Please create an API key with the required scopes in Settings > API Tokens "
247+
"in the Socket dashboard (https://socket.dev)."
248+
)
244249
return results
245250

246251
# Import socketdev SDK

0 commit comments

Comments
 (0)