From 6795fe98794b3977f2c7a2ddefbc594e76719723 Mon Sep 17 00:00:00 2001 From: Amine Amanzou Date: Sun, 1 Nov 2026 19:48:36 +0100 Subject: [PATCH] Watch dependency updates and scan vulnerabilities between commits --- .github/dependabot.yml | 21 +++++++++++++++++++++ .github/workflows/ci.yml | 8 ++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5d65207 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,21 @@ +# Version updates are reviewed before merging. Security alerts and security +# updates are enabled separately in the repository settings. +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "09:00" + timezone: "Etc/UTC" + open-pull-requests-limit: 3 + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "09:30" + timezone: "Etc/UTC" + open-pull-requests-limit: 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71278dc..428813c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ # published for the Go toolchain or a dependency, not because of the change # under review. # +# Scheduled and manual runs execute govulncheck only. PRs and pushes keep +# the existing formatting, vet and test matrix. +# # Not run here: the integration tests (-tags integration), which need the # real clusters started by tools/testclusters.sh. name: CI @@ -15,12 +18,16 @@ on: push: branches: [main] pull_request: + schedule: + - cron: "23 6 * * *" # Daily, 06:23 UTC. + workflow_dispatch: permissions: contents: read jobs: test: + if: github.event_name == 'push' || github.event_name == 'pull_request' strategy: fail-fast: false matrix: @@ -52,6 +59,7 @@ jobs: govulncheck: runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: