Add PR dependency audit workflow and fix audited vulnerabilities#1808
Closed
Copilot wants to merge 5 commits into
Closed
Add PR dependency audit workflow and fix audited vulnerabilities#1808Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add repository security automation for hovancik/stretchly
Add CodeQL and PR dependency audit workflows for trunk
Jun 20, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds repository-level security automation to Stretchly by introducing (1) CodeQL code scanning for JavaScript and (2) an npm dependency vulnerability audit that runs on pull requests targeting trunk.
Changes:
- Added a CodeQL workflow that runs on
push/pull_requesttotrunkand on a weekly schedule. - Added a PR-only npm audit workflow that installs dependencies and fails on high+ severity production dependency vulnerabilities.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/dependency-audit.yml |
Adds a pull-request npm install + npm audit gate for production deps targeting trunk. |
.github/workflows/codeql.yml |
Adds CodeQL scanning for JavaScript on trunk (push/PR) plus a weekly scheduled scan. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a pull-request dependency vulnerability gate for Stretchly and resolves the vulnerabilities it surfaced. The workflow is scoped to
trunk, runs without secrets, and follows least-privilege permissions.Changes
Dependency vulnerability check on PRs
.github/workflows/dependency-audit.ymlpull_requesttargetingtrunknpm ci --ignore-scriptsnpm audit --omit=dev --audit-level=highcontents: read)actions/setup-nodeis used withoutcache: npmto keep the job truly read-only (avoids needing the Actions cache API undercontents: read)Dependency updates (fix audit findings)
fast-uri3.1.0 → 3.1.2 (transitive viaelectron-store→conf→ajv) — fixes a high-severity path-traversal / host-confusion advisorydompurify3.4.1 → 3.4.11 — fixes moderate-severity advisoriespackage.jsonranges are unchangednpm audit --omit=dev --audit-level=highnow reports 0 vulnerabilitiesNotes