Socket security-policy API
The security-policy API from Socket — 1 operation(s) for security-policy.
The security-policy API from Socket — 1 operation(s) for security-policy.
openapi: 3.0.0
info:
description: Specification of the Socket API endpoints
title: API Endpoints alerts security-policy API
version: '0'
servers:
- url: https://api.socket.dev/v0
tags:
- name: security-policy
paths:
/orgs/{org_slug}/settings/security-policy:
get:
tags:
- security-policy
summary: Get Organization Security Policy
operationId: getOrgSecurityPolicy
parameters:
- name: org_slug
in: path
required: true
description: The slug of the organization
schema:
type: string
- name: custom_rules_only
in: query
required: false
description: Return only customized security policy rules.
schema:
type: boolean
default: false
security:
- bearerAuth:
- security-policy:read
- basicAuth:
- security-policy:read
description: 'Retrieve the security policy of an organization.
This endpoint consumes 1 unit of your quota.
This endpoint requires the following org token scopes:
- security-policy:read'
responses:
'200':
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
securityPolicyRules:
type: object
additionalProperties: false
properties:
gptSecurity:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for gptSecurity issues.
required:
- action
gptAnomaly:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for gptAnomaly issues.
required:
- action
gptMalware:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for gptMalware issues.
required:
- action
filesystemAccess:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for filesystemAccess issues.
required:
- action
networkAccess:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for networkAccess issues.
required:
- action
shellAccess:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for shellAccess issues.
required:
- action
debugAccess:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for debugAccess issues.
required:
- action
chromePermission:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for chromePermission issues.
required:
- action
chromeHostPermission:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for chromeHostPermission issues.
required:
- action
chromeWildcardHostPermission:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for chromeWildcardHostPermission issues.
required:
- action
chromeContentScript:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for chromeContentScript issues.
required:
- action
criticalCVE:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for criticalCVE issues.
required:
- action
cve:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for cve issues.
required:
- action
mediumCVE:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for mediumCVE issues.
required:
- action
mildCVE:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for mildCVE issues.
required:
- action
emptyPackage:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for emptyPackage issues.
required:
- action
trivialPackage:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for trivialPackage issues.
required:
- action
noREADME:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for noREADME issues.
required:
- action
missingLockfile:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for missingLockfile issues.
required:
- action
oversizedManifest:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for oversizedManifest issues.
required:
- action
shrinkwrap:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for shrinkwrap issues.
required:
- action
tooManyFiles:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for tooManyFiles issues.
required:
- action
generic:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for generic issues.
required:
- action
ghaArgToSink:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for ghaArgToSink issues.
required:
- action
ghaEnvToSink:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for ghaEnvToSink issues.
required:
- action
ghaContextToSink:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for ghaContextToSink issues.
required:
- action
ghaArgToOutput:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for ghaArgToOutput issues.
required:
- action
ghaArgToEnv:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for ghaArgToEnv issues.
required:
- action
ghaContextToOutput:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for ghaContextToOutput issues.
required:
- action
ghaContextToEnv:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for ghaContextToEnv issues.
required:
- action
recentlyPublished:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for recentlyPublished issues.
required:
- action
licenseSpdxDisj:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for licenseSpdxDisj issues.
required:
- action
unsafeCopyright:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for unsafeCopyright issues.
required:
- action
licenseChange:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for licenseChange issues.
required:
- action
nonOSILicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for nonOSILicense issues.
required:
- action
deprecatedLicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for deprecatedLicense issues.
required:
- action
missingLicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for missingLicense issues.
required:
- action
nonSPDXLicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for nonSPDXLicense issues.
required:
- action
unclearLicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for unclearLicense issues.
required:
- action
mixedLicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for mixedLicense issues.
required:
- action
notice:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for notice issues.
required:
- action
modifiedLicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for modifiedLicense issues.
required:
- action
modifiedException:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for modifiedException issues.
required:
- action
licenseException:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for licenseException issues.
required:
- action
deprecatedException:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for deprecatedException issues.
required:
- action
miscLicenseIssues:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for miscLicenseIssues issues.
required:
- action
unidentifiedLicense:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for unidentifiedLicense issues.
required:
- action
noLicenseFound:
type: object
additionalProperties: false
description: ''
properties:
action:
type: string
enum:
- defer
- error
- warn
- monitor
- ignore
description: The action to take for noLicenseFound issues.
required:
- action
explicitlyUnlicensedItem:
type: object
additionalProperties: false
description: ''
properties:
# --- truncated at 32 KB (268 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/socket/refs/heads/main/openapi/socket-security-policy-api-openapi.yml