Skip to content

chore: Update dependencies (security), improve CI workflow #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 30, 2025

Conversation

J3m5
Copy link
Contributor

@J3m5 J3m5 commented Jun 30, 2025

This PR updates dependencies to address security issues and refines the CI workflow

Summary of changes:

  • Updated brace-expansion to v2.0.2 to fix a security vulnerability
  • Added and reorganized CI steps: formatting check, type checking, and improved step naming
  • Improved Prettier usage with --experimental-cli for faster formatting and added .prettierignore
  • Updated oxlint rules and adapted code to new linting requirements

@J3m5 J3m5 self-assigned this Jun 30, 2025
Copy link

github-actions bot commented Jun 30, 2025

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 71.35% (🎯 70%) 289 / 405
🟢 Statements 71.39% (🎯 70%) 292 / 409
🟢 Functions 71.64% (🎯 70%) 48 / 67
🟢 Branches 59.63% (🎯 58%) 229 / 384
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/swagger/handleJson.ts 80.76% 65.21% 100% 80.76% 10, 25, 34, 40, 46
src/utils/getResources.ts 100% 100% 100% 100%
Generated in workflow #243 for commit f74bb4b by the Vitest Coverage Report Action

@J3m5 J3m5 changed the title chore: update dependencies and linting rules chore: Update dependencies (security), improve CI workflow Jun 30, 2025
@J3m5 J3m5 requested a review from Copilot June 30, 2025 13:23
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates dependencies to address security vulnerabilities while refining the CI workflow and lint configuration. Key changes include:

  • Updating the "brace-expansion" dependency to v2.0.2.
  • Reorganizing and adding new CI steps (formatting check, type checking, and improved naming) for better feedback.
  • Updating Prettier usage with the experimental CLI and adapting linting rules via .oxlintrc.json.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/utils/getResources.ts Simplified arrow function syntax for filtering resource paths.
src/swagger/handleJson.ts Reordered imports and updated arrow function syntax for field mapping.
src/hydra/fetchJsonLd.test.ts Converted test mocks to concise arrow functions for improved clarity.
pnpm-workspace.yaml Added overrides for "brace-expansion" dependency as part of the update.
package.json Updated dependency versions and enhanced Prettier CLI usage.
.prettierignore Added pnpm lock and workspace files to the ignore list.
.oxlintrc.json Introduced additional ESLint rules and adjustments per updated guidelines.
.github/workflows/ci.yml Reorganized CI steps and renamed steps for clearer workflow indications.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@J3m5 J3m5 force-pushed the chore/update-deps branch 2 times, most recently from c39220c to 962d7d8 Compare June 30, 2025 14:01
J3m5 added 7 commits June 30, 2025 16:02
- Replace `Build` step by `Check types`.
- Adjusted the order of `Check types` to follow `Lint`.

Signed-off-by: J3m5 <5523410+J3m5@users.noreply.github.com>
- Updated brace-expansion from 2.0.1 to 2.0.2 in both pnpm-lock.yaml and pnpm-workspace.yaml
- Added overrides for brace-expansion in pnpm-workspace.yaml

Vulnerability report: GHSA-v6h2-p8h4-qcjw
Patched release: https://github.com/juliangruber/brace-expansion/releases/tag/v2.0.2
@J3m5 J3m5 force-pushed the chore/update-deps branch from 962d7d8 to f74bb4b Compare June 30, 2025 14:03
@J3m5 J3m5 merged commit 50bfdfd into main Jun 30, 2025
1 check passed
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