Skip to content

ci: add dependency-review workflow - #22464

Merged
GirlBossRush merged 2 commits into
mainfrom
ci/dependency-review
May 21, 2026
Merged

GirlBossRush merged 2 commits into
mainfrom
ci/dependency-review

Conversation

@GirlBossRush

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/qa-dependency-review.yml, which runs actions/[email protected] on every PR targeting main.

Blocks PRs that introduce a new dependency (direct or transitive, any ecosystem GitHub supports — npm, Go modules, Python, GitHub Actions) with a known high or critical vulnerability.

How this fits the rest of the supply-chain hardening

  • Dependabot surfaces vulns in already-merged deps (the existing flow).
  • dependency-review catches them at the moment they would be introduced, before merge — Dependabot only sees the world after merge.
  • It does not catch the maintainer-account-hijack-to-malicious-version case directly (no advisory exists yet for those). The defense for that is the existing .npmrc:1 ignore-scripts=true + Dependabot npm cooldown.

This action does not need access to the dependency graph beyond what the PR diff exposes, so the only permission it needs is pull-requests: write (to leave the summary comment on failure) plus contents: read.

Config

  • fail-on-severity: high — block on high/critical only; lower-severity introductions surface in the check summary but don't gate merge
  • comment-summary-in-pr: on-failure — when the action blocks a PR, post a diff-style summary as a comment so the reviewer sees context, not just a red check

Test plan

  • Workflow appears on this PR's checks list as QA - Dependency review / dependency-review.
  • Passes for this PR (no dependency changes in this diff).
  • On a follow-up PR that bumps a vulnerable package version, the check fails and posts a summary comment.

@GirlBossRush
GirlBossRush requested a review from a team as a code owner May 19, 2026 11:36
@codecov

codecov Bot commented May 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.29%. Comparing base (6ee2778) to head (12ab607).
⚠️ Report is 11 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #22464   +/-   ##
=======================================
  Coverage   93.29%   93.29%           
=======================================
  Files        1032     1032           
  Lines       60062    60062           
  Branches      400      400           
=======================================
+ Hits        56032    56033    +1     
+ Misses       4030     4029    -1     
Flag Coverage Δ
conformance 36.61% <ø> (+<0.01%) ⬆️
e2e 41.85% <ø> (-0.01%) ⬇️
integration 33.05% <ø> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.20% <ø> (+<0.01%) ⬆️
unit-migrate 92.25% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@netlify

netlify Bot commented May 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 12ab607
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a0e5ac7d68052000850dbcf
😎 Deploy Preview https://deploy-preview-22464--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush
GirlBossRush force-pushed the ci/dependency-review branch from 275f0e3 to 056b5cc Compare May 20, 2026 02:09
Comment on lines +6 to +7
# Advisory Database supports — for this repo that's npm, Go modules,
# Python (pip/uv), and GitHub Actions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does that also include rust dependencies?

GirlBossRush and others added 2 commits May 21, 2026 03:07
Adds a `QA - Dependency review` workflow that runs
`actions/dependency-review-action` on every PR targeting `main`.

This blocks PRs that introduce a *new* dependency (direct or transitive)
with a known high or critical vulnerability in GitHub's Advisory
Database. It complements rather than duplicates Dependabot: Dependabot
surfaces vulns in already-merged dependencies; dependency-review catches
them at the moment they would be introduced.

It also catches the much narrower case that motivated this PR — a
maintainer-account-hijack publishing a malicious version to npm — only
indirectly: GitHub will not have an advisory entry until the package
has been flagged. The real value here is keeping the much larger class
of "newly introduced dep happens to carry a known CVE" out of the tree.

Configured with:

  - fail-on-severity: high  (block on high/critical only)
  - comment-summary-in-pr: on-failure  (surface diff context to
                                        reviewers when a block fires)

Pinned to v5.0.0 (a1d282b36b6f3519aa1f3fc636f609c47dddb294).

Co-authored-by: Agent <[email protected]>
@GirlBossRush
GirlBossRush force-pushed the ci/dependency-review branch from 4996200 to 12ab607 Compare May 21, 2026 01:07
@GirlBossRush
GirlBossRush enabled auto-merge (squash) May 21, 2026 11:39
@GirlBossRush
GirlBossRush merged commit 9efb6c3 into main May 21, 2026
162 of 164 checks passed
@GirlBossRush
GirlBossRush deleted the ci/dependency-review branch May 21, 2026 12:16
@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-12ab6075332e2a386fba81ff82e443d86e85cda7
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-12ab6075332e2a386fba81ff82e443d86e85cda7

Afterwards, run the upgrade commands from the latest release notes.

kensternberg-authentik added a commit that referenced this pull request May 21, 2026
* main: (28 commits)
  events: fix certificate typo (#22542)
  website/release: Release notes updates (#22543)
  providers/saml: handle XML declarations in unified endpoint (#22455)
  web: bump @sentry/browser from 10.52.0 to 10.53.1 in /web in the sentry group across 1 directory (#22472)
  core: bump library/golang from 1.26.2-trixie to 1.26.3-trixie in /lifecycle/container (#22516)
  core: bump sentry-sdk from 2.59.0 to 2.60.0 (#22513)
  core: bump github.com/go-openapi/runtime from 0.29.5 to 0.30.0 (#22511)
  core: bump djangorestframework-stubs[compatible-mypy] from 3.16.9 to 3.17.0 (#22512)
  website/docs: release notes: add absorb lms to integrations (#22534)
  core: bump library/node from 24 to 26 in /lifecycle/container (#22517)
  website/docs: document npm install-script blocking (#22461)
  ci: add dependency-review workflow (#22464)
  root: bind-mount .npmrc into Dockerfile npm ci stages (#22462)
  website/docs: add global to values.yaml snippets and update version (#22524)
  website/integrations: add absorb LMS (#22328)
  core: bump astral-sh/uv from 0.11.5 to 0.11.15 in /lifecycle/container (#22515)
  core: bump library/nginx from 1.29-trixie to 1.31-trixie in /website (#22520)
  ci: bump codecov/codecov-action from 6.0.0 to 6.0.1 in /.github/actions/test-results (#22522)
  core: bump aws-cdk-lib from 2.253.1 to 2.254.0 (#22514)
  core: bump goauthentik/fips-python from 3.14.3-slim-trixie-fips to 3.14.5-slim-trixie-fips in /lifecycle/container (#22518)
  ...
smirnovsten pushed a commit to smirnovsten/authentik that referenced this pull request Aug 5, 2026
* ci: add dependency-review workflow

Adds a `QA - Dependency review` workflow that runs
`actions/dependency-review-action` on every PR targeting `main`.

This blocks PRs that introduce a *new* dependency (direct or transitive)
with a known high or critical vulnerability in GitHub's Advisory
Database. It complements rather than duplicates Dependabot: Dependabot
surfaces vulns in already-merged dependencies; dependency-review catches
them at the moment they would be introduced.

It also catches the much narrower case that motivated this PR — a
maintainer-account-hijack publishing a malicious version to npm — only
indirectly: GitHub will not have an advisory entry until the package
has been flagged. The real value here is keeping the much larger class
of "newly introduced dep happens to carry a known CVE" out of the tree.

Configured with:

  - fail-on-severity: high  (block on high/critical only)
  - comment-summary-in-pr: on-failure  (surface diff context to
                                        reviewers when a block fires)

Pinned to v5.0.0 (a1d282b36b6f3519aa1f3fc636f609c47dddb294).

Co-authored-by: Agent <[email protected]>

* Update comment.

---------

Co-authored-by: Agent <[email protected]>
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.

2 participants