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
33 changes: 33 additions & 0 deletions .github/workflows/vulnerabilities.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Vulnerabilities

# CI runs govulncheck on every push and pull request, so a vulnerability published in Go or a
# dependency while nothing is being pushed would go unnoticed until the next change. This runs the
# same check every day on main: a failed run is reported by GitHub to whoever maintains the
# schedule, and calls for a patch release built with the fixed version.

on:
schedule:
- cron: "17 6 * * *"
workflow_dispatch:

permissions:
contents: read

env:
GOVULNCHECK_VERSION: v1.8.0

jobs:
govulncheck:
name: Known vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod

- name: Run govulncheck
run: go run "golang.org/x/vuln/cmd/govulncheck@${GOVULNCHECK_VERSION}" ./...
3 changes: 2 additions & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Releases are cut by the maintainer. The steps below assume the `gh` CLI is logge

## Which number

- **Patch** (`0.3.1`): fixes only, security fixes included.
- **Patch** (`0.3.1`): fixes only, security fixes included. One is due whenever the daily
Vulnerabilities workflow fails: the release rebuilds the image with the fixed Go or dependency.
- **Minor** (`0.4.0`): anything a user can see that is not a fix.
- **Major** (`2.0.0`): anything that breaks what the Compatibility section of the README lists.
- The image gets `X.Y.Z`, `X.Y`, `X` and `latest`. Releases before 1.0 published no major tag,
Expand Down
Loading