Skip to content

Commit 3721975

Browse files
peterzenzCopilot
andcommitted
Fix dependency audit failures
Update vulnerable runtime dependencies, adapt the wrapper to the current MSAL API, and move CI to supported Node and action releases. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 12ab047 commit 3721975

23 files changed

Lines changed: 9250 additions & 33150 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,49 +18,49 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
node-version: [16.x, 18.x]
21+
node-version: [20.x, 22.x]
2222
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2323

2424
steps:
25-
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
27+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

3131
- run: |
3232
cd Common/msal-node-wrapper
3333
npm ci
34-
npm audit --production
34+
npm audit --omit=dev
3535
npm run build --if-present
3636
npm run test
3737
3838
- run: |
3939
cd 1-Authentication/1-sign-in/App
4040
npm install
41-
npm audit --production
41+
npm audit --omit=dev
4242
npm run test
4343
4444
- run: |
4545
cd 1-Authentication/2-sign-in-b2c/App
4646
npm install
47-
npm audit --production
47+
npm audit --omit=dev
4848
npm run test
4949
5050
- run: |
5151
cd 2-Authorization/1-call-graph/App
5252
npm install
53-
npm audit --production
53+
npm audit --omit=dev
5454
npm run test
5555
5656
- run: |
5757
cd 4-AccessControl/1-app-roles/App
5858
npm install
59-
npm audit --production
59+
npm audit --omit=dev
6060
npm run test
6161
6262
- run: |
6363
cd 4-AccessControl/2-security-groups/App
6464
npm install
65-
npm audit --production
65+
npm audit --omit=dev
6666
npm run test

‎.github/workflows/codeql.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141

4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
44+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4545

4646
# Initializes the CodeQL tools for scanning.
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
48+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
4949
with:
5050
languages: ${{ matrix.language }}
5151
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -59,7 +59,7 @@ jobs:
5959
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6060
# If this step fails, then you should remove it and run the build manually (see below)
6161
- name: Autobuild
62-
uses: github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
62+
uses: github/codeql-action/autobuild@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
6363

6464
# ℹ️ Command-line programs to run using the OS shell.
6565
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -72,6 +72,6 @@ jobs:
7272
# ./location_of_script_within_repo/buildscript.sh
7373

7474
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
75+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
7676
with:
7777
category: "/language:${{matrix.language}}"

‎.github/workflows/docs.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
deploy:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
19+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020
with:
2121
submodules: true # Fetch Hugo themes (true OR recursive)
2222
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2323

2424
- name: Use Node.js
25-
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
25+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2626
env:
2727
RUNNING_NODE_CI: 1
2828
- run: |
@@ -32,7 +32,7 @@ jobs:
3232
npm run docs
3333
3434
- name: Deploy
35-
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
35+
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
3636
with:
3737
github_token: ${{ secrets.GITHUB_TOKEN }}
3838
publish_dir: ./docs

‎.github/workflows/issues.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/stale@98ed4cb500039dbcccf4bd9bedada4d0187f2757 # v3.0.19
14+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
1515
with:
1616
repo-token: ${{ secrets.GITHUB_TOKEN }}
1717
operations-per-run: 60

0 commit comments

Comments
 (0)