Skip to content

Watch the lock on main every week, against OSV and each dependency's repository - #109

Merged
HackTuah merged 1 commit into
mainfrom
ci/advisory-watch
Nov 29, 2026
Merged

HackTuah merged 1 commit into
mainfrom
ci/advisory-watch

Conversation

@HackTuah

Copy link
Copy Markdown
Member

A weekly check of the lock on main, so that a new advisory against a locked dependency fails a run, which GitHub reports to the maintainer, instead of waiting for someone to notice red Dependabot pull requests.

Why two readers

  • tools/audit.sh (mix hex.audit) reads OSV, which includes the EEF CNA's advisories.
  • OSV imports a repository's own GitHub advisory some time after the repository publishes it. tools/advisory_watch.exs reads each locked package's repository advisories directly, holds the locked version to each range, and says for each finding whether OSV has it yet.

Measured

The workflow runs Mondays 05:47 UTC and by hand, never on a push or a pull request (the gate's audit covers those). Permissions are read-only. A governance test holds the triggers and both readers; with a push: trigger planted, it fails.

  • GATE_LEG=pinned ./tools/gate.sh: "Gate OK.", every step passing; 501 tracked files, the two new ones in REUSE and the publication allowlist.

…repository

A lock goes bad by the calendar: from late October main's lock carried
fourteen published advisories and only Dependabot's pull requests went
red. And the audit reads OSV, which imports a repository's advisory
some time after the repository publishes it.

tools/advisory_watch.exs reads each locked hex package's GitHub
repository from the registry, that repository's published advisories,
and holds the locked version to each range; each finding says whether
OSV lists it for that version yet. Run on the lock before #106 it finds
fifteen, two of them (GHSA-j9wq-h5xx-5qx5, GHSA-fmr8-qrvr-4ww5) not in
OSV for bandit 1.13.1, which the audit alone passed. It exits 0, 1 or 2
(not measured) as tools/audit.sh does, and --self-test holds its range
reader offline.

advisory-watch.yml runs both readers every Monday and by hand, never on
a push or a pull request, with read-only permissions: a finding is a
failed scheduled run, which GitHub reports to the maintainer. A
governance test holds the triggers and both readers.

Signed-off-by: Ayla Croft <aylacroft@proton.me>
@HackTuah
HackTuah merged commit c1b58e6 into main Nov 29, 2026
23 checks passed
@HackTuah
HackTuah deleted the ci/advisory-watch branch November 29, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant