fix: initialize python version before doing anything else in GHA

pull/904/head
Raphaël Vinot 2024-03-28 17:00:40 +01:00
parent 9ffe9f23e9
commit cfcb585c0e
3 changed files with 7 additions and 7 deletions

View File

@ -18,15 +18,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{matrix.python-version}} - name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{matrix.python-version}} python-version: ${{matrix.python-version}}
cache: 'poetry' cache: 'poetry'
- name: Install poetry
run: pipx install poetry
- name: Clone Redis - name: Clone Redis
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:

View File

@ -18,15 +18,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{matrix.python-version}} - name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{matrix.python-version}} python-version: ${{matrix.python-version}}
cache: 'poetry' cache: 'poetry'
- name: Install poetry
run: pipx install poetry
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt install libfuzzy-dev libmagic1 sudo apt install libfuzzy-dev libmagic1

View File

@ -151,7 +151,7 @@ class MISP(AbstractModule):
def module_init(self) -> bool: def module_init(self) -> bool:
if not self.config.get('apikey'): if not self.config.get('apikey'):
self.logger.info('No API key: {self.config}.') self.logger.info(f'No API key: {self.config}.')
return False return False
try: try: