Skip to content

Commit 06ee7b2

Browse files
committed
Merge branch 'ssh-agent-on-pr987' of https://github.com/fabiovincenzi/git-proxy into ssh-agent-on-pr987
2 parents ee4dfcb + 7a6cfc2 commit 06ee7b2

File tree

98 files changed

+8044
-10206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+8044
-10206
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,33 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
strategy:
20+
fail-fast: false
2021
matrix:
21-
node-version: [20.x]
22-
mongodb-version: [4.4]
22+
node-version: [20.x, 22.x, 24.x]
23+
mongodb-version: ['6.0', '7.0', '8.0']
2324

2425
steps:
2526
- name: Harden Runner
26-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
27+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # ratchet:step-security/harden-runner@v2.13.3
2728
with:
2829
egress-policy: audit
2930

30-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
31+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/checkout@v6.0.1
3132
with:
3233
fetch-depth: 0
3334

3435
- name: Use Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
36+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # ratchet:actions/setup-node@v6.1.0
3637
with:
3738
node-version: ${{ matrix.node-version }}
3839

3940
- name: Start MongoDB
40-
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 # 1.12.1
41+
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 # ratchet:supercharge/mongodb-github-action@1.12.1
4142
with:
4243
mongodb-version: ${{ matrix.mongodb-version }}
4344

4445
- name: Install dependencies
45-
run: npm i
46+
run: npm ci
4647

4748
# for now only check the types of the server
4849
# tsconfig isn't quite set up right to respect what vite accepts
@@ -60,7 +61,7 @@ jobs:
6061
npm run test-coverage-ci --workspaces --if-present
6162
6263
- name: Upload test coverage report
63-
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
64+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # ratchet:codecov/codecov-action@v5.5.1
6465
with:
6566
files: ./coverage/lcov.info
6667
token: ${{ secrets.CODECOV_TOKEN }}
@@ -72,22 +73,57 @@ jobs:
7273
run: npm run build-ui
7374

7475
- name: Save build folder
75-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
76+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # ratchet:actions/upload-artifact@v4
7677
with:
77-
name: build
78+
name: build-${{ matrix.node-version }}-mongo-${{ matrix.mongodb-version }}
7879
if-no-files-found: error
7980
path: build
8081

8182
- name: Download the build folders
82-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
83+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # ratchet:actions/download-artifact@v5
8384
with:
84-
name: build
85+
name: build-${{ matrix.node-version }}-mongo-${{ matrix.mongodb-version }}
8586
path: build
8687

8788
- name: Run cypress test
88-
uses: cypress-io/github-action@7ef72e250a9e564efb4ed4c2433971ada4cc38b4 # v6.10.4
89+
uses: cypress-io/github-action@7ef72e250a9e564efb4ed4c2433971ada4cc38b4 # ratchet:cypress-io/github-action@v6.10.4
8990
with:
9091
start: npm start &
9192
wait-on: 'http://localhost:3000'
9293
wait-on-timeout: 120
93-
run: npm run cypress:run
94+
command: npm run cypress:run
95+
96+
# Execute a final job to collect the results and report a single check status
97+
results:
98+
if: ${{ always() }}
99+
runs-on: ubuntu-latest
100+
name: build result
101+
needs: [build]
102+
steps:
103+
- name: Check build results
104+
run: |
105+
result="${{ needs.build.result }}"
106+
if [[ $result == "success" || $result == "skipped" ]]; then
107+
echo "### ✅ All builds passed" >> $GITHUB_STEP_SUMMARY
108+
exit 0
109+
else
110+
echo "### ❌ Some builds failed" >> $GITHUB_STEP_SUMMARY
111+
exit 1
112+
fi
113+
114+
- name: Parse failed matrix jobs
115+
if: needs.build.result == 'failure'
116+
run: |
117+
echo "## Failed Matrix Combinations" >> $GITHUB_STEP_SUMMARY
118+
echo "" >> $GITHUB_STEP_SUMMARY
119+
echo "| Node Version | MongoDB Version | Status |" >> $GITHUB_STEP_SUMMARY
120+
echo "|--------------|-----------------|--------|" >> $GITHUB_STEP_SUMMARY
121+
122+
# Parse the matrix results from the build job
123+
results='${{ toJSON(needs.build.outputs) }}'
124+
125+
# Since we can't directly get individual matrix job statuses,
126+
# we'll note that the build job failed
127+
echo "| Multiple | Multiple | ❌ Failed |" >> $GITHUB_STEP_SUMMARY
128+
echo "" >> $GITHUB_STEP_SUMMARY
129+
echo "⚠️ Check the [build job logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details on which specific matrix combinations failed." >> $GITHUB_STEP_SUMMARY

.github/workflows/codeql.yml

Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: 'CodeQL'
132

143
on:
@@ -25,67 +14,34 @@ permissions:
2514
jobs:
2615
analyze:
2716
name: Analyze
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.
3317
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3418
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
3519
permissions:
36-
# required for all workflows
3720
security-events: write
3821

39-
# only required for workflows in private repositories
40-
actions: read
41-
contents: read
42-
4322
strategy:
4423
fail-fast: false
4524
matrix:
4625
language: ['javascript-typescript']
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
5126

5227
steps:
5328
- name: Harden Runner
54-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2
29+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # ratchet:step-security/harden-runner@v2
5530
with:
5631
egress-policy: audit
5732

5833
- name: Checkout repository
59-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
34+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/checkout@v6
6035

61-
# Initializes the CodeQL tools for scanning.
6236
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@f94c9befffa4412c356fb5463a959ab7821dd57e # v3
37+
uses: github/codeql-action/init@1b168cd39490f61582a9beae412bb7057a6b2c4e # ratchet:github/codeql-action/init@v4
6438
with:
6539
languages: ${{ matrix.language }}
66-
# If you wish to specify custom queries, you can do so here or in a config file.
67-
# By default, queries listed here will override any specified in a config file.
68-
# Prefix the list here with "+" to use these queries and those in the config file.
69-
70-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
71-
# queries: security-extended,security-and-quality
7240

73-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
74-
# If this step fails, then you should remove it and run the build manually (see below)
7541
- name: Autobuild
76-
uses: github/codeql-action/autobuild@f94c9befffa4412c356fb5463a959ab7821dd57e # v3
77-
78-
# ℹ️ Command-line programs to run using the OS shell.
79-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
80-
81-
# If the Autobuild fails above, remove it and uncomment the following three lines.
82-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
83-
84-
# - run: |
85-
# echo "Run, Build Application using script"
86-
# ./location_of_script_within_repo/buildscript.sh
42+
uses: github/codeql-action/autobuild@1b168cd39490f61582a9beae412bb7057a6b2c4e # ratchet:github/codeql-action/autobuild@v4
8743

8844
- name: Perform CodeQL Analysis
89-
uses: github/codeql-action/analyze@f94c9befffa4412c356fb5463a959ab7821dd57e # v3
45+
uses: github/codeql-action/analyze@1b168cd39490f61582a9beae412bb7057a6b2c4e # ratchet:github/codeql-action/analyze@v4
9046
with:
9147
category: '/language:${{matrix.language}}'

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Harden Runner
13-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2
13+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2
1414
with:
1515
egress-policy: audit
1616

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Harden Runner
27-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
27+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
2828
with:
2929
egress-policy: audit
3030

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Harden Runner
17-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
17+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
1818
with:
1919
egress-policy: audit
2020

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Harden Runner
17-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
17+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
1818
with:
1919
egress-policy: audit
2020

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps: # list of steps
1616
- name: Harden Runner
17-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2
17+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2
1818
with:
1919
egress-policy: audit
2020

.github/workflows/npm.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
steps:
1313
- name: Harden Runner
14-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
14+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
1515
with:
1616
egress-policy: audit
1717

.github/workflows/pr-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Harden Runner
25-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
25+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
2626
with:
2727
egress-policy: audit
2828

.github/workflows/sample-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Harden Runner
16-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
16+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
1717
with:
1818
egress-policy: audit
1919
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

0 commit comments

Comments
 (0)