Skip to content

Commit 61b4afa

Browse files
committed
chore: merge: 1.19.2
2 parents 88e11c8 + 6bdf166 commit 61b4afa

30 files changed

+1894
-14875
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
path: build
8484

8585
- name: Run cypress test
86-
uses: cypress-io/github-action@6c143abc292aa835d827652c2ea025d098311070 # v6.10.1
86+
uses: cypress-io/github-action@b8ba51a856ba5f4c15cf39007636d4ab04f23e3c # v6.10.2
8787
with:
8888
start: npm start &
8989
wait-on: "http://localhost:3000"

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060

6161
# Initializes the CodeQL tools for scanning.
6262
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3
63+
uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3
6464
with:
6565
languages: ${{ matrix.language }}
6666
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -74,7 +74,7 @@ jobs:
7474
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
7575
# If this step fails, then you should remove it and run the build manually (see below)
7676
- name: Autobuild
77-
uses: github/codeql-action/autobuild@181d5eefc20863364f96762470ba6f862bdef56b # v3
77+
uses: github/codeql-action/autobuild@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3
7878

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

8989
- name: Perform CodeQL Analysis
90-
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3
90+
uses: github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3
9191
with:
9292
category: "/language:${{matrix.language}}"

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
75+
uses: github/codeql-action/upload-sarif@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
7676
with:
7777
sarif_file: results.sarif

index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env tsx
22
/* eslint-disable max-len */
3+
import path from 'path';
34
import yargs from 'yargs';
45
import { hideBin } from 'yargs/helpers';
56
import * as fs from 'fs';
67
import { configFile, setConfigFile, validate } from './src/config/file';
8+
import { initUserConfig } from './src/config';
79
import proxy from './src/proxy';
810
import service from './src/service';
911

@@ -19,7 +21,7 @@ const argv = yargs(hideBin(process.argv))
1921
},
2022
config: {
2123
description: 'Path to custom git-proxy configuration file.',
22-
default: 'proxy.config.json',
24+
default: path.join(__dirname, 'proxy.config.json'),
2325
required: false,
2426
alias: 'c',
2527
type: 'string',
@@ -29,6 +31,7 @@ const argv = yargs(hideBin(process.argv))
2931
.parseSync();
3032

3133
setConfigFile(argv.c as string || "");
34+
initUserConfig();
3235

3336
if (argv.v) {
3437
if (!fs.existsSync(configFile)) {

0 commit comments

Comments
 (0)