Skip to content

Target pyobas release branch #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: release/current
Choose a base branch
from
Open
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
40 changes: 26 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,6 @@ jobs:
- slack/notify:
event: fail
template: basic_fail_1
linter:
docker:
- image: alpine/flake8
working_directory: ~/repo
steps:
- checkout
- run: apk update && apk upgrade && apk --no-cache add curl gettext bash
- run:
name: flake8
command: flake8 --ignore=E,W ~/repo
- slack/notify:
event: fail
template: basic_fail_1
test:
working_directory: ~/openbas
docker:
Expand All @@ -48,11 +35,34 @@ jobs:
- run:
working_directory: ~/openbas/crowdstrike
name: Install dependencies for crowdstrike collector
command: pip install -r requirements.txt
command: |
CIRCLE_BRANCH_EXISTS=$(git ls-remote --heads https://github.com/OpenBAS-Platform/client-python.git ${CIRCLE_BRANCH} | wc -l)

if [ "CIRCLE_BRANCH_EXISTS" -eq "1" ]; then
TARGET_BRANCH=${CIRCLE_BRANCH}
else
TARGET_BRANCH="release/current"
fi

sed -i "s|^pyobas.*$|pyobas @ git+https://github.com/OpenBAS-Platform/client-python.git@${TARGET_BRANCH}|" requirements.txt
pip install -r requirements.txt
- run:
working_directory: ~/openbas/crowdstrike
name: Tests for crowdstrike collector
command: python -m unittest
linter:
docker:
- image: alpine/flake8
working_directory: ~/repo
steps:
- checkout
- run: apk update && apk upgrade && apk --no-cache add curl gettext bash
- run:
name: flake8
command: flake8 --ignore=E,W ~/repo
- slack/notify:
event: fail
template: basic_fail_1
build_1:
working_directory: ~/openbas
docker:
Expand Down Expand Up @@ -290,6 +300,7 @@ workflows:
requires:
- ensure_formatting
- linter
- test
filters:
branches:
only:
Expand All @@ -298,6 +309,7 @@ workflows:
requires:
- ensure_formatting
- linter
- test
filters:
branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion crowdstrike/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pyobas==1.15.2
crowdstrike-falconpy==1.4.9
pydantic==2.11.3
pydantic==2.11.3