Skip to content

Commit 59d889a

Browse files
CI hardening: remove npm-publish.yml, add Python 3.13, project.urls, persist-credentials, permissions (#22)
1 parent e13b430 commit 59d889a

3 files changed

Lines changed: 15 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@ on:
77
pull_request:
88
branches: [master]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
runs-on: ubuntu-latest
1316
strategy:
1417
matrix:
15-
python-version: ["3.11", "3.12"]
18+
python-version: ["3.11", "3.12", "3.13"]
1619

1720
steps:
1821
- uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
1924

2025
- name: Set up Python ${{ matrix.python-version }}
2126
uses: actions/setup-python@v5
@@ -42,6 +47,8 @@ jobs:
4247

4348
steps:
4449
- uses: actions/checkout@v4
50+
with:
51+
persist-credentials: false
4552

4653
- name: Set up Python
4754
uses: actions/setup-python@v5

.github/workflows/npm-publish.yml

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

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ readme = "README.md"
1010
requires-python = ">=3.10"
1111
license = "MIT"
1212
authors = [{name = "Revenue Holdings"}]
13-
urls = {Homepage = "https://github.com/Coding-Dev-Tools/deadcode", Repository = "https://github.com/Coding-Dev-Tools/deadcode"}
1413
keywords = ["dead-code", "unused-exports", "typescript", "react", "nextjs", "cli", "css", "tree-shaking"]
1514
classifiers = [
1615
"Development Status :: 4 - Beta",
@@ -38,6 +37,13 @@ dev = [
3837
"ruff>=0.4.0",
3938
]
4039

40+
[project.urls]
41+
Homepage = "https://github.com/Coding-Dev-Tools/deadcode"
42+
Documentation = "https://coding-dev-tools.github.io/deadcode"
43+
Repository = "https://github.com/Coding-Dev-Tools/deadcode"
44+
Issues = "https://github.com/Coding-Dev-Tools/deadcode/issues"
45+
Changelog = "https://github.com/Coding-Dev-Tools/deadcode/releases"
46+
4147
[project.scripts]
4248
deadcode = "deadcode.cli:cli"
4349

0 commit comments

Comments
 (0)