Skip to content

Commit 150cce5

Browse files
authored
Add npm script to regenerate the package-lock.json (#41)
Adds a new npm script called `regen-package-lock` to the root `package.json`. This script removes all `node_modules` and `package-lock.json` files from the root and all workspaces, then reinstalls dependencies and runs `npm audit:fix` to ensure a clean and secure dependency tree.
1 parent 309bd7b commit 150cce5

7 files changed

Lines changed: 1467 additions & 1081 deletions

File tree

.github/workflows/code-qa.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
- "**/*.html"
2121
- ".github/workflows/code-qa.yaml"
2222

23+
permissions:
24+
contents: read
2325
jobs:
2426
build:
2527
runs-on: ubuntu-latest
@@ -31,7 +33,7 @@ jobs:
3133

3234
steps:
3335
- name: Checkout repository
34-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3537
- name: Use Node.js ${{ matrix.node-version }}
3638
uses: actions/setup-node@v4
3739
with:

.github/workflows/codeql-analysis.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,33 @@ on:
2525
jobs:
2626
analyze:
2727
name: Analyze
28-
runs-on: ubuntu-latest
28+
# Runner size impacts CodeQL analysis time. To learn more, please see:
29+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
30+
# - https://gh.io/supported-runners-and-hardware-resources
31+
# - https://gh.io/using-larger-runners
32+
# Consider using larger runners for possible analysis time improvements.
33+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
34+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
35+
permissions:
36+
# required for all workflows
37+
security-events: write
38+
39+
# only required for workflows in private repositories
40+
actions: read
41+
contents: read
2942

3043
strategy:
3144
fail-fast: false
3245
matrix:
33-
language: ["javascript"]
34-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
35-
# Learn more:
36-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
46+
language: ["javascript-typescript", "actions"]
47+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
48+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
49+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
50+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3751

3852
steps:
3953
- name: Checkout repository
40-
uses: actions/checkout@v4
54+
uses: actions/checkout@v5
4155

4256
# Initializes the CodeQL tools for scanning.
4357
- name: Initialize CodeQL

.github/workflows/markdown-lint.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ on:
1616
- ".markdownlintignore"
1717
- ".github/workflows/markdown-lint.yml"
1818

19+
permissions:
20+
contents: read
1921
jobs:
2022
lint-markdown:
2123
runs-on: ubuntu-latest
2224

2325
steps:
2426
- name: Checkout repository
25-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2628
- name: Use Node.js ${{ matrix.node-version }}
2729
uses: actions/setup-node@v4
2830
with:

.github/workflows/ossar.yaml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/r.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ on:
1616
- "**/*.R"
1717
- ".github/workflows/r.yaml"
1818

19+
permissions:
20+
contents: read
1921
jobs:
2022
build:
2123
runs-on: ubuntu-latest
2224
steps:
2325
- name: Checkout code
24-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2527

2628
- name: Set up R
2729
uses: r-lib/actions/setup-r@v2

0 commit comments

Comments
 (0)