Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: 2

updates:
# Keeps the SHA-pinned actions in .github/workflows current: a PR bumps the SHA and the
# trailing version comment together.
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
# Wait a week after an action release before proposing it.
cooldown:
default-days: 7
groups:
github-actions:
update-types:
- minor
- patch
open-pull-requests-limit: 5
labels:
- dependencies
commit-message:
prefix: ci

- package-ecosystem: pip
directory: /
schedule:
interval: weekly
day: monday
cooldown:
default-days: 7
groups:
python:
update-types:
- minor
- patch
open-pull-requests-limit: 5
labels:
- dependencies
commit-message:
prefix: deps
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4

- name: Ruff check
run: uvx ruff check .
Expand All @@ -24,10 +27,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4

- name: Build package
run: uv build
13 changes: 8 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ on:
tags:
- "v*"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4

- name: Build package
run: uv build

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: dist
path: dist/
Expand All @@ -31,13 +34,13 @@ jobs:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: dist
path: dist/

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4

- name: Publish to PyPI
run: uv publish dist/*
12 changes: 12 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security policy

## Supported versions

Only the latest release gets security fixes.

## Reporting a vulnerability

Do not open a public issue. Use the private vulnerability reporting of GitHub:
[Report a vulnerability](https://github.com/thomaschristory/netbox-proxy-plugin/security/advisories/new)
(**Security > Report a vulnerability** on the repository). Only the maintainer sees the report.
The maintainer replies, fixes the problem, and publishes an advisory with the fix.
Loading