Skip to content

Commit 19acaac

Browse files
committed
update template and dependencies
1 parent 769a7fa commit 19acaac

13 files changed

Lines changed: 667 additions & 551 deletions

.copier-answers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v7.3.0-24-g169e035
2+
_commit: v8.3.1
33
_src_path: gh:eccenca/cmem-plugin-template
44
author_mail: cmempy-developer@eccenca.com
55
author_name: eccenca GmbH
6-
github_page: ''
6+
github_page: https://github.com/eccenca/cmem-plugin-logpoint
77
project_description: Retrieve data from a Logpoint Security information and event
88
management (SIEM) system.
99
project_slug: logpoint
1010
project_type: plugin
11-
pypi: false
11+
pypi: true
1212

.github/workflows/check.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
- name: Check out repository
2323
uses: actions/checkout@v5
2424

25+
- name: Cache Trivy DB
26+
id: cache-trivydb
27+
uses: actions/cache@v4
28+
with:
29+
path: .trivycache
30+
key: ${{ runner.os }}-trivydb
31+
2532
- name: Install Task
2633
uses: arduino/setup-task@v2
2734

@@ -61,9 +68,13 @@ jobs:
6168
run: |
6269
task check:deptry
6370
64-
- name: safety
71+
- name: trivy
72+
env:
73+
TRIVY_NO_PROGRESS: "true"
74+
TRIVY_CACHE_DIR: ".trivycache/"
75+
TRIVY_DISABLE_VEX_NOTICE: "true"
6576
run: |
66-
task check:safety
77+
task check:trivy
6778
6879
- name: Publish Test Report in Action
6980
uses: mikepenz/action-junit-report@v4

.gitlab-ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,24 @@ deptry:
6060
script:
6161
- task check:deptry
6262

63-
safety:
63+
trivy:
6464
stage: test
65+
variables:
66+
TRIVY_NO_PROGRESS: "true"
67+
TRIVY_CACHE_DIR: ".trivycache/"
68+
TRIVY_DISABLE_VEX_NOTICE: "true"
6569
script:
66-
- task check:safety
70+
- task check:trivy
71+
cache:
72+
paths:
73+
- .trivycache/
6774

6875
build:
6976
stage: build
7077
needs:
7178
- mypy
7279
- pytest
73-
- safety
80+
- trivy
7481
- deptry
7582
script:
7683
- task build

.idea/cmem-plugin-logpoint.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
default_language_version:
3+
python: python3.13
4+
25
repos:
36
- repo: local
47
hooks:
@@ -36,3 +39,9 @@ repos:
3639
stages: [post-checkout, post-merge]
3740
always_run: true
3841

42+
- id: trivy
43+
name: check:trivy
44+
description: run trivy to scan for vulnerabilities
45+
entry: task check:trivy
46+
language: python
47+
pass_filenames: false

.trivyignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# .trivyignore
2+
3+
# ignore 51358 safety - dev dependency only
4+
CVE-2022-39280

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)
77

8-
## [Unreleased]
8+
## [0.6.0] 2026-02-23
9+
10+
### Changed
11+
12+
- move to github
13+
- update template
14+
15+
### Fixed
16+
17+
- insecure dependencies
918

10-
TODO: add at least one Added, Changed, Deprecated, Removed, Fixed or Security section
1119

1220
## [0.5.1] 2025-11-07
1321

README-public.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://d
99
```
1010
cmemc admin workspace python install cmem-plugin-logpoint
1111
```
12-
12+
[![workflow](https://github.com/eccenca/cmem-plugin-logpoint/actions/workflows/check.yml/badge.svg)](https://github.com/eccenca/cmem-plugin-logpoint/actions) [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-logpoint)](https://pypi.org/project/cmem-plugin-logpoint) [![license](https://img.shields.io/pypi/l/cmem-plugin-logpoint)](https://pypi.org/project/cmem-plugin-logpoint)
1313
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
1414

1515
[cmem-link]: https://documentation.eccenca.com

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Retrieve data from a Logpoint Security information and event management (SIEM) system.
44

5-
[![eccenca Corporate Memory][cmem-shield]][cmem-link]
5+
[![eccenca Corporate Memory][cmem-shield]][cmem-link][![workflow](https://github.com/eccenca/cmem-plugin-logpoint/actions/workflows/check.yml/badge.svg)](https://github.com/eccenca/cmem-plugin-logpoint/actions) [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-logpoint)](https://pypi.org/project/cmem-plugin-logpoint) [![license](https://img.shields.io/pypi/l/cmem-plugin-logpoint)](https://pypi.org/project/cmem-plugin-logpoint)
66
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
77

88
## Development

Taskfile.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tasks:
5151
Check poetry versioning plugin. Currently not under Windows
5252
run: once
5353
preconditions:
54-
- sh: '[ -d .git ]'
54+
- sh: git -C . rev-parse
5555
msg: >
5656
Your newly created project directory needs to be initialized
5757
as a git repository.
@@ -112,7 +112,7 @@ tasks:
112112
- task: check:ruff
113113
- task: check:mypy
114114
- task: check:deptry
115-
- task: check:safety
115+
- task: check:trivy
116116

117117
check:pytest:
118118
desc: Run unit and integration tests
@@ -154,12 +154,16 @@ tasks:
154154
vars:
155155
JUNIT_FILE: ./{{.DIST_DIR}}/junit-mypy.xml
156156

157-
check:safety:
158-
desc: Complain about vulnerabilities in dependencies
157+
check:trivy:
158+
desc: Scan for vulnerabilities using Trivy
159159
<<: *preparation
160160
cmds:
161-
# ignore 51358 safety - dev dependency only
162-
- poetry run safety check -i 51358
161+
- >
162+
poetry run trivy fs
163+
--include-dev-deps
164+
--scanners vuln
165+
--exit-code 1
166+
.
163167
164168
check:deptry:
165169
desc: Complain about unused or missing dependencies

0 commit comments

Comments
 (0)