Skip to content

Commit 8c72554

Browse files
Merge branch 'develop' into add_bot_time_filter
2 parents cd41494 + e411d4f commit 8c72554

File tree

487 files changed

+14719
-10571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

487 files changed

+14719
-10571
lines changed

.github/workflows/ansible-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
- name: Checkout ansible scripts
3030
uses: actions/checkout@v2
3131
with:
32-
repository: schacht-certat/intelmq-vagrant
32+
repository: certtools/intelmq-vagrant
3333
path: ./src/intelmq-vagrant
3434

3535
- name: Run ansible tests
36-
run: buildah run -v ${GITHUB_WORKSPACE}/src:/src $(buildah from docker.io/debian:buster-slim) /src/intelmq/.github/workflows/scripts/ansible.sh
36+
run: podman run -e CI=${CI} -v ${GITHUB_WORKSPACE}/src:/src docker.io/debian:buster-slim /src/intelmq/.github/workflows/scripts/ansible.sh

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
python-version: ['3.6', '3.7', '3.8', '3.9']
24+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
2525

2626
steps:
2727
- name: Checkout repository

.github/workflows/codespell.excludelines

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The correct name for the parameter "delimeter" is "delimiter". Please fix your c
1010
WHERE "event_description.text" = 'The infected iot device logged in to a honeypot and issued malicous commands.' AND "classification.taxonomy" = 'intrusions' AND "classification.type" = 'unauthorized-command' AND "classification.identifier" = 'iot' AND "feed.name" = 'Spamhaus CERT';
1111

1212
# from intelmq/tests/lib/test_upgrades.py
13-
"delimeter": ","
14-
"delimeter": ",",
13+
"delimeter": ","
14+
"delimeter": ",",
1515

1616
# from intelmq/lib/upgrades.py
1717
if "delimeter" in bot["parameters"] and "delimiter" in bot["parameters"]:

.github/workflows/docker.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Github Workflow to build container image
2-
#
2+
#
33
# SPDX-FileCopyrightText: 2021 Sebastian Waldbauer
44
# SPDX-License-Identifier: AGPL-3.0-or-later
55
#
@@ -17,6 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20+
- name: Check if environment is ACT
21+
run: sudo chown runner:docker /var/run/docker.sock
22+
if: ${{ env.ACT }}
23+
2024
- name: Checkout IntelMQ-Docker
2125
uses: actions/checkout@v2
2226
with:
@@ -57,7 +61,7 @@ jobs:
5761

5862
- name: Login to DockerHub
5963
uses: docker/login-action@v1
60-
if: github.repository == 'certtools/intelmq'
64+
if: github.repository == 'certtools/intelmq' && !${{ env.ACT }}
6165
with:
6266
username: ${{ secrets.DOCKERHUB_USERNAME }}
6367
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -77,7 +81,7 @@ jobs:
7781
./test.sh
7882
7983
- name: Publish develop version to dockerhub
80-
if: github.repository == 'certtools/intelmq'
84+
if: github.repository == 'certtools/intelmq' && !${{ env.ACT }}
8185
run: |
8286
docker tag intelmq-full:latest certat/intelmq-full:develop
8387
docker push certat/intelmq-full:develop

.github/workflows/scripts/ansible-playbook.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,25 @@
4444
owner: intelmq
4545
group: intelmq
4646

47+
- name: Delete shipped runtime.yaml
48+
file:
49+
path: '/opt/intelmq/etc/runtime.yaml'
50+
state: absent
51+
4752
- name: Copy runtime.conf
4853
copy:
49-
src: '/src/intelmq/.github/workflows/scripts/ansible-runtime.yaml'
50-
dest: '/opt/intelmq/etc/runtime.yaml'
54+
src: 'assets/runtime.conf'
55+
dest: '/opt/intelmq/etc/runtime.conf'
56+
owner: intelmq
57+
group: intelmq
58+
mode: '0664'
59+
- name: Copy pipeline.conf
60+
copy:
61+
src: 'assets/pipeline.conf'
62+
dest: '/opt/intelmq/etc/pipeline.conf'
63+
owner: intelmq
64+
group: intelmq
65+
mode: '0664'
5166
- name: Make sure redis is running
5267
service:
5368
state: started
@@ -57,20 +72,5 @@
5772
state: started
5873
name: "{{webserver}}"
5974

60-
# Store the intelmq version in a variable
61-
- name: Get intelmq version
62-
command: intelmqctl --version
63-
register: intelmqversion
64-
- name: Set intelmq_version fact
65-
set_fact:
66-
intelmq_version={{ intelmqversion.stdout }}
67-
- name: Set intelmq_major_version fact
68-
set_fact:
69-
intelmq_major_version={{ intelmqversion.stdout[:1] }}
70-
- name: Print version
71-
debug:
72-
msg: IntelMQ Version {{ intelmq_version }} and IntelMQ Major Version {{ intelmq_major_version }}
73-
74-
- name: Run CLI tests
75-
include: "{{ item }}"
76-
loop: "{{ query('fileglob', '/src/intelmq-vagrant/ansible/tasks/cli/*.yml') | sort }}"
75+
- name: Run tasks
76+
include: "tasks.yml"

.github/workflows/scripts/ansible-runtime.yaml

Lines changed: 0 additions & 225 deletions
This file was deleted.

.github/workflows/scripts/ansible.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
#
55
apt-get update -qq
66
apt-get install ansible python python3-apt -y
7-
ansible-playbook --connection=local -i /src/intelmq-vagrant/ansible/inventory.yml /src/intelmq/.github/workflows/scripts/ansible-playbook.yml
7+
cp /src/intelmq/.github/workflows/scripts/ansible-playbook.yml /src/intelmq-vagrant/ansible/playbook.yml
8+
ansible-playbook --connection=local -i /src/intelmq-vagrant/ansible/inventory.yml /src/intelmq-vagrant/ansible/playbook.yml

0 commit comments

Comments
 (0)