mirror of
https://github.com/openai/codex-security.git
synced 2026-11-24 03:45:49 +08:00
BREAKING CHANGE: Set CODEX_SECURITY_ENABLE_EXTERNAL_IMPORTS=1 to use external import and publication workflows.
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
services:
|
|
codex-security:
|
|
image: ${CODEX_SECURITY_IMAGE:-codex-security:local}
|
|
build:
|
|
context: .
|
|
init: true
|
|
user: ${CODEX_SECURITY_USER:-10001:10001}
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
- seccomp=${CODEX_SECURITY_SECCOMP:-./docker/codex-security-seccomp.json}
|
|
environment:
|
|
CODEX_API_KEY:
|
|
CODEX_SECURITY_EMBEDDINGS_URL:
|
|
CODEX_SECURITY_ENABLE_EXTERNAL_IMPORTS:
|
|
CODEX_SECURITY_GIT_HOST:
|
|
GH_TOKEN:
|
|
GITHUB_TOKEN:
|
|
OPENAI_API_KEY:
|
|
volumes:
|
|
- type: bind
|
|
source: ${CODEX_SECURITY_CSV:-./repositories.csv}
|
|
target: /input/repositories.csv
|
|
read_only: true
|
|
bind:
|
|
create_host_path: false
|
|
- type: bind
|
|
source: ${CODEX_SECURITY_RESULTS:-./results}
|
|
target: /output
|
|
bind:
|
|
create_host_path: false
|
|
- type: bind
|
|
source: ${CODEX_SECURITY_STATE:-./state}
|
|
target: /state
|
|
bind:
|
|
create_host_path: false
|
|
command:
|
|
- bulk-scan
|
|
- /input/repositories.csv
|
|
- --output-dir
|
|
- /output
|