Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/python-ci.yml → .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@ name: Connector CI
on:
pull_request:

concurrency:
group: ghas-security-scan-${{ github.ref }}
cancel-in-progress: true

jobs:
infra-scan:
permissions:
contents: read
pull-requests: write
security-events: write
uses: notdodo/github-actions/.github/workflows/infra-security-scan.yml@infra-scan-v0

python-ci-pulumi:
permissions:
contents: read
uses: notdodo/github-actions/.github/workflows/python-ci.yml@python-ci-v0
with:
working-directory: "."
working-directory: '.'

build-docker-image:
permissions:
Expand All @@ -21,4 +32,9 @@ jobs:
with:
image: digintlab/opencti-connector
platforms: linux/amd64, linux/amd64
egress-policy-allowlist: >
deb.debian.org:443
deb.debian.org:80
files.pythonhosted.org:443
pypi.org:443
push: false
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ HEALTHCHECK NONE

ENV PATH="/app/.venv/bin:${PATH}"

# kics-scan ignore-line
RUN apt update && apt install -y libmagic-dev

RUN adduser --system --no-create-home app
Expand Down
8 changes: 4 additions & 4 deletions config.yml.sample
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
opencti:
url: http://opencti:8080
token: "CHANGE_ME"
url: 'http://opencti:8080'
token: "ChangeMe"

connector:
id: ChangeMe
type: EXTERNAL_IMPORT
name: DEP Connector
scope: incident,identity,indicator
log_level: info
interval: 3600
interval: 3600 # In seconds

# Connector specific configuration
# All values can also be provided with environment variables prefixed with
Expand All @@ -28,4 +28,4 @@ dep:
extended_results: true
enable_site_indicator: true
enable_hash_indicator: true
skip_empty_victim: true
skip_empty_victim: true
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# kics-scan ignore
services:
rsa-key-generator:
image: alpine/openssl:3.5.2
Expand Down