Skip to content

Commit c61506a

Browse files
authored
Merge branch 'main' into oidc-implementation
2 parents 5c93210 + 363f4ae commit c61506a

File tree

20 files changed

+299
-166
lines changed

20 files changed

+299
-166
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,22 @@ jobs:
2323
mongodb-version: [4.4]
2424

2525
steps:
26+
- name: Harden Runner
27+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
28+
with:
29+
egress-policy: audit
30+
2631
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2732
with:
2833
fetch-depth: 0
2934

3035
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
3237
with:
3338
node-version: ${{ matrix.node-version }}
3439

3540
- name: Start MongoDB
36-
uses: supercharge/mongodb-github-action@1.11.0
41+
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
3742
with:
3843
mongodb-version: ${{ matrix.mongodb-version }}
3944

@@ -47,7 +52,7 @@ jobs:
4752
npm run test-coverage-ci --workspaces --if-present
4853
4954
- name: Upload test coverage report
50-
uses: codecov/codecov-action@v5.1.2
55+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
5156
with:
5257
files: ./coverage/lcov.info
5358
token: ${{ secrets.CODECOV_TOKEN }}
@@ -59,20 +64,20 @@ jobs:
5964
run: npm run build
6065

6166
- name: Save build folder
62-
uses: actions/upload-artifact@v4
67+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
6368
with:
6469
name: build
6570
if-no-files-found: error
6671
path: build
6772

6873
- name: Download the build folders
69-
uses: actions/download-artifact@v4
74+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
7075
with:
7176
name: build
7277
path: build
7378

7479
- name: Run cypress test
75-
uses: cypress-io/github-action@v6
80+
uses: cypress-io/github-action@7271bed2a170d73c0b08939cd192db51a1c46c50 # v6.7.10
7681
with:
7782
start: npm start &
7883
wait-on: "http://localhost:3000"

.github/workflows/codeql.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
schedule:
2020
- cron: '25 10 * * 1'
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
analyze:
2427
name: Analyze
@@ -47,12 +50,17 @@ jobs:
4750
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4851

4952
steps:
53+
- name: Harden Runner
54+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2
55+
with:
56+
egress-policy: audit
57+
5058
- name: Checkout repository
51-
uses: actions/checkout@v4
59+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
5260

5361
# Initializes the CodeQL tools for scanning.
5462
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@v3
63+
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3
5664
with:
5765
languages: ${{ matrix.language }}
5866
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -66,7 +74,7 @@ jobs:
6674
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6775
# If this step fails, then you should remove it and run the build manually (see below)
6876
- name: Autobuild
69-
uses: github/codeql-action/autobuild@v3
77+
uses: github/codeql-action/autobuild@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3
7078

7179
# ℹ️ Command-line programs to run using the OS shell.
7280
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -79,6 +87,6 @@ jobs:
7987
# ./location_of_script_within_repo/buildscript.sh
8088

8189
- name: Perform CodeQL Analysis
82-
uses: github/codeql-action/analyze@v3
90+
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3
8391
with:
8492
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ jobs:
99
dependency-review:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Harden Runner
13+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2
14+
with:
15+
egress-policy: audit
16+
1217
- name: 'Checkout Repository'
13-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1419
- name: Dependency Review
15-
uses: actions/dependency-review-action@v4
20+
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4
1621
with:
1722
comment-summary-in-pr: always
1823
fail-on-severity: high

.github/workflows/experimental-inventory-ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,22 @@ jobs:
2323
mongodb-version: [4.4]
2424

2525
steps:
26+
- name: Harden Runner
27+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
28+
with:
29+
egress-policy: audit
30+
2631
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2732
with:
2833
fetch-depth: 0
2934

3035
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
3237
with:
3338
node-version: ${{ matrix.node-version }}
3439

3540
- name: Start MongoDB
36-
uses: supercharge/mongodb-github-action@1.11.0
41+
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
3742
with:
3843
mongodb-version: ${{ matrix.mongodb-version }}
3944

.github/workflows/experimental-inventory-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@ on:
33
push:
44
tags:
55
- 'license-inventory-*'
6+
permissions:
7+
contents: read
8+
69
jobs:
710
build:
811
runs-on: ubuntu-latest
912
steps:
13+
- name: Harden Runner
14+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
15+
with:
16+
egress-policy: audit
17+
1018
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1119

1220
# Setup .npmrc file to publish to npm
13-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
1422
with:
1523
node-version: '18.x'
1624
registry-url: 'https://registry.npmjs.org'

.github/workflows/lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@ on: [pull_request]
55
env: # environment variables (available in any part of the action)
66
NODE_VERSION: 18
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
linting:
1013
name: Linting
1114
runs-on: ubuntu-latest
1215
steps: # list of steps
16+
- name: Harden Runner
17+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2
18+
with:
19+
egress-policy: audit
20+
1321
- name: Install NodeJS
14-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
1523
with:
1624
node-version: ${{ env.NODE_VERSION }}
1725

.github/workflows/npm.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ name: Publish to NPM
22
on:
33
release:
44
types: [published]
5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
runs-on: ubuntu-latest
811
steps:
12+
- name: Harden Runner
13+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
14+
with:
15+
egress-policy: audit
16+
917
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1018
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
1220
with:
1321
node-version: '18.x'
1422
registry-url: 'https://registry.npmjs.org'

.github/workflows/pr-lint.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ jobs:
2121
name: Validate & Label PR
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: amannn/action-semantic-pull-request@v5
24+
- name: Harden Runner
25+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
26+
with:
27+
egress-policy: audit
28+
29+
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
2530
env:
2631
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2732
with:
@@ -39,6 +44,6 @@ jobs:
3944
revert
4045
test
4146
break
42-
- uses: release-drafter/release-drafter@v6
47+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6
4348
env:
4449
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sample-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@ on:
55
tags:
66
- 'sample-*'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
1114
steps:
15+
- name: Harden Runner
16+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
17+
with:
18+
egress-policy: audit
19+
1220
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1321
# Setup .npmrc file to publish to npm
14-
- uses: actions/setup-node@v4
22+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
1523
with:
1624
node-version: '18.x'
1725
registry-url: 'https://registry.npmjs.org'

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: Harden Runner
35-
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
35+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
3636
with:
3737
egress-policy: audit
3838

@@ -72,6 +72,6 @@ jobs:
7272

7373
# Upload the results to GitHub's code scanning dashboard.
7474
- name: "Upload to code-scanning"
75-
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
75+
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
7676
with:
7777
sarif_file: results.sarif

0 commit comments

Comments
 (0)