Skip to content

Commit 2aeccc0

Browse files
committed
Release 0.6.1, add security checks and badges
1 parent 22e807a commit 2aeccc0

File tree

6 files changed

+520
-2
lines changed

6 files changed

+520
-2
lines changed

.github/workflows/bandit.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: bandit
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main*"
7+
push:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
bandit:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
- name: Install uv and sync dev dependencies
20+
run: |
21+
pip install uv
22+
uv venv
23+
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
24+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
25+
uv sync --dev
26+
- name: Run Bandit
27+
run: |
28+
bandit -r pdfbaker/
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: OSSF Scorecard
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
scorecard:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Run OSS Scorecard
17+
uses: ossf/scorecard-action@v2
18+
with:
19+
repo: ${{ github.repository }}

.github/workflows/pip-audit.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pip-audit
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main*"
7+
push:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
pip-audit:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
- name: Install uv and sync dev dependencies
20+
run: |
21+
pip install uv
22+
uv venv
23+
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
24+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
25+
uv sync --dev
26+
- name: Run pip-audit
27+
run: |
28+
pip-audit

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
[![Downloads](https://img.shields.io/pypi/dw/pdfbaker?color=blue)](https://pypistats.org/packages/pdfbaker)
66
[![tests](https://github.com/pythonnz/pdfbaker/actions/workflows/tests.yaml/badge.svg)](https://github.com/pythonnz/pdfbaker/actions/workflows/tests.yaml)
77
[![codecov](https://img.shields.io/codecov/c/github/pythonnz/pdfbaker)](https://codecov.io/gh/pythonnz/pdfbaker)
8+
[![OSSF Scorecard](https://img.shields.io/ossf-scorecard/github.com/pythonnz/pdfbaker?label=OSSF%20Scorecard)](https://scorecard.dev/viewer/?uri=github.com/pythonnz/pdfbaker)
9+
[![pip-audit](https://img.shields.io/github/actions/workflow/status/pythonnz/pdfbaker/pip-audit.yaml?label=pip-audit&logo=python)](https://github.com/pythonnz/pdfbaker/actions/workflows/pip-audit.yaml)
10+
[![bandit](https://img.shields.io/github/actions/workflow/status/pythonnz/pdfbaker/bandit.yaml?label=bandit&logo=python)](https://github.com/pythonnz/pdfbaker/actions/workflows/bandit.yaml)
811
[![Last commit](https://img.shields.io/github/last-commit/pythonnz/pdfbaker?color=lightgrey)](https://github.com/pythonnz/pdfbaker/commits/main)
912
[![License](https://img.shields.io/github/license/pythonnz/pdfbaker?color=lightgrey)](https://github.com/pythonnz/pdfbaker/blob/main/LICENSE)
1013

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pdfbaker"
3-
version = "0.5.2"
3+
version = "0.6.1"
44
description = "SVG Jinja templates + YAML config = PDF documents"
55
authors = [
66
{ name = "Danny W. Adair", email = "danny.adair@unfold.nz" }
@@ -26,8 +26,13 @@ build-backend = "hatchling.build"
2626
[tool.uv]
2727
managed = true
2828
dev-dependencies = [
29+
# --- Testing
2930
"pytest",
3031
"pytest-cov",
32+
33+
# --- Security
34+
"pip-audit",
35+
"bandit"
3136
]
3237

3338
[tool.hatch.metadata]

0 commit comments

Comments
 (0)