Skip to content

Commit 68a7ef6

Browse files
author
DevForge Engineer
committed
fix: remove npm-publish.yml, add project URLs, harden CI security
- Remove npm-publish.yml (wrong-language workflow for Python repo) - Add [project.urls] to pyproject.toml (Homepage, Docs, Repo, Issues, Changelog) - Add Python 3.13 to CI test matrix - Add persist-credentials: false to all checkout steps (ci, publish, pages) - Add permissions: contents: read to ci.yml
1 parent 3a28eef commit 68a7ef6

5 files changed

Lines changed: 19 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest
1215
strategy:
1316
matrix:
14-
python-version: ["3.10", "3.11", "3.12"]
17+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1518

1619
steps:
1720
- uses: actions/checkout@v6
21+
with:
22+
persist-credentials: false
1823

1924
- name: Set up Python ${{ matrix.python-version }}
2025
uses: actions/setup-python@v6
@@ -27,7 +32,7 @@ jobs:
2732
2833
- name: Lint with ruff
2934
run: pip install ruff && ruff check src/ --target-version py310
35+
3036
- name: Run tests
3137
run: |
3238
python -m pytest tests/ -v --cov=src --cov-report=term-missing
33-

.github/workflows/npm-publish.yml

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

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v6
22+
with:
23+
persist-credentials: false
2224
- name: Setup Pages
2325
uses: actions/configure-pages@v5
2426
- name: Build with Jekyll

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v6
25+
with:
26+
persist-credentials: false
2527

2628
- name: Set up Python 3.11
2729
uses: actions/setup-python@v6

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ classifiers = [
2424
"Programming Language :: Python :: 3.10",
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
]
2829

30+
[project.urls]
31+
Homepage = "https://github.com/Coding-Dev-Tools/json2sql"
32+
Documentation = "https://coding-dev-tools.github.io/json2sql/"
33+
Repository = "https://github.com/Coding-Dev-Tools/json2sql"
34+
Issues = "https://github.com/Coding-Dev-Tools/json2sql/issues"
35+
Changelog = "https://github.com/Coding-Dev-Tools/json2sql/releases"
36+
2937
[project.optional-dependencies]
3038
license = ["revenueholdings-license>=0.1.0"]
3139
dev = [

0 commit comments

Comments
 (0)