From 8890313d03bf2b4803744263beeefdb921988bdd Mon Sep 17 00:00:00 2001 From: Sollan Systems Date: Thu, 9 Jul 2026 23:30:34 -0400 Subject: [PATCH] ci: dependabot version updates + least-privilege workflow permissions - .github/dependabot.yml: weekly github-actions (grouped) + pip update checks - ci.yml / publish.yml: explicit top-level 'permissions: contents: read' (publish job keeps its scoped 'id-token: write' for PyPI trusted publishing) Companion to repo-settings changes enabled via API: secret scanning + push protection, CodeQL default setup (python + actions). --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/ci.yml | 3 +++ .github/workflows/publish.yml | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d49e465 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +updates: + # Covers .github/workflows/*.yml and the root composite action.yml. + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + actions: + patterns: ["*"] + + # Runtime is stdlib-only; this watches the optional extras and any future pins. + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7cca5b..3231624 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: branches: [main] pull_request: +permissions: + contents: read + jobs: gates: name: gates (py${{ matrix.python-version }}) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index baf2c63..9c56903 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,9 @@ on: push: tags: ["v*"] +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest