From 9619167d090201a826c5d4261d47c59d944a9fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 22 Dec 2024 05:05:03 +0100 Subject: [PATCH] Update .github stuff --- .github/SECURITY.md | 11 +++++++++++ .github/renovate.json | 2 +- .github/workflows/docker-publish.yml | 2 +- .github/workflows/ruff.yml | 16 ++++++++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/SECURITY.md create mode 100644 .github/workflows/ruff.yml diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..8b747aa --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,11 @@ +# Reporting a Vulnerability + +tl;dr: [open a draft security advisory](https://github.com/TheLovinator1/anewdawn/security/advisories/new). + +--- + +You can also email me at [tlovinator@gmail.com](mailto:tlovinator@gmail.com). + +I am also available on Discord at `TheLovinator#9276`. + +Thanks :-) diff --git a/.github/renovate.json b/.github/renovate.json index e3b8653..c00d84c 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -8,4 +8,4 @@ "dependencyDashboard": false, "osvVulnerabilityAlerts": true, "timezone": "Europe/Stockholm" -} +} \ No newline at end of file diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 97a44a2..65d0be1 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,7 +7,7 @@ on: schedule: - cron: "0 0 * * *" jobs: - build: + docker: runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..b90cc82 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,16 @@ +name: Ruff + +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' # Run every day at midnight +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v5 + - run: uv sync --all-extras --dev + - run: uv run pytest -vv