From 64ffef1ea610c4052efefeb955034987fb104bc4 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:24:23 +0000 Subject: [PATCH 1/6] . --- dist/index.js | 2 ++ src/git-command-manager.ts | 1 + src/input-helper.ts | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 67752ae..45c8d27 100644 --- a/dist/index.js +++ b/dist/index.js @@ -641,6 +641,7 @@ class GitCommandManager { args.push('--no-tags'); } args.push('--prune', '--no-recurse-submodules'); + console.log(`options show progress = ${options.showProgress}`); if (options.showProgress) { args.push('--progress'); } @@ -1746,6 +1747,7 @@ function getInputs() { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE'; core.debug(`show progress = ${result.showProgress}`); + console.log(`show progress = ${result.showProgress}`); // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'; core.debug(`lfs = ${result.lfs}`); diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 7752cfa..41bc394 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -255,6 +255,7 @@ class GitCommandManager { } args.push('--prune', '--no-recurse-submodules') + console.log(`options show progress = ${options.showProgress}`) if (options.showProgress) { args.push('--progress') } diff --git a/src/input-helper.ts b/src/input-helper.ts index be9cecd..6385938 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,7 +109,7 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) - + console.log(`show progress = ${result.showProgress}`) // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`) From e1b7fe15cfa2060cffca56b01dd7d6eb7b6a777f Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:30:54 +0000 Subject: [PATCH 2/6] . --- dist/index.js | 1 + src/git-source-provider.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index 45c8d27..13f3e36 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1261,6 +1261,7 @@ function getSource(settings) { else { fetchOptions.fetchDepth = settings.fetchDepth; fetchOptions.fetchTags = settings.fetchTags; + fetchOptions.showProgress = settings.showProgress; const refSpec = refHelper.getRefSpec(settings.ref, settings.commit); yield git.fetch(refSpec, fetchOptions); } diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index c1360b8..acbf688 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -177,6 +177,7 @@ export async function getSource(settings: IGitSourceSettings): Promise { } else { fetchOptions.fetchDepth = settings.fetchDepth fetchOptions.fetchTags = settings.fetchTags + fetchOptions.showProgress = settings.showProgress const refSpec = refHelper.getRefSpec(settings.ref, settings.commit) await git.fetch(refSpec, fetchOptions) } From 276befb35cbc35b5468f6ec9f25715f021edc5ca Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:33:16 +0000 Subject: [PATCH 3/6] . --- dist/index.js | 2 -- src/git-command-manager.ts | 1 - src/input-helper.ts | 1 - 3 files changed, 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 13f3e36..f4af77a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -641,7 +641,6 @@ class GitCommandManager { args.push('--no-tags'); } args.push('--prune', '--no-recurse-submodules'); - console.log(`options show progress = ${options.showProgress}`); if (options.showProgress) { args.push('--progress'); } @@ -1748,7 +1747,6 @@ function getInputs() { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE'; core.debug(`show progress = ${result.showProgress}`); - console.log(`show progress = ${result.showProgress}`); // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'; core.debug(`lfs = ${result.lfs}`); diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 41bc394..7752cfa 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -255,7 +255,6 @@ class GitCommandManager { } args.push('--prune', '--no-recurse-submodules') - console.log(`options show progress = ${options.showProgress}`) if (options.showProgress) { args.push('--progress') } diff --git a/src/input-helper.ts b/src/input-helper.ts index 6385938..c76bed5 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,7 +109,6 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) - console.log(`show progress = ${result.showProgress}`) // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`) From 691545e3dc320848f7d2b29e2f23943860c2c8a5 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:34:17 +0000 Subject: [PATCH 4/6] . --- src/input-helper.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input-helper.ts b/src/input-helper.ts index c76bed5..fa4aafc 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,6 +109,7 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) + // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`) From bab023d7a2c8eef4351fc96992dc6d83c9561bb2 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:37:26 +0000 Subject: [PATCH 5/6] . --- src/input-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input-helper.ts b/src/input-helper.ts index fa4aafc..be9cecd 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,7 +109,7 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) - + // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`) From 84101c38832451f194018db57c15b629ebad1f66 Mon Sep 17 00:00:00 2001 From: "Kristen T. Tran" Date: Thu, 4 Dec 2025 02:48:39 +0700 Subject: [PATCH 6/6] Create codeql.yml --- .github/workflows/codeql.yml | 101 +++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..28b4e35 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,101 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL Advanced" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '26 21 * * 6' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners (GitHub.com only) + # Consider using larger runners or machines with greater resources for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read + + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: javascript-typescript + build-mode: none + # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Add any setup steps before running the `github/codeql-action/init` action. + # This includes steps like installing compilers or runtimes (`actions/setup-node` + # or others). This is typically only required for manual builds. + # - name: Setup runtime (example) + # uses: actions/setup-example@v1 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # 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 + # queries: security-extended,security-and-quality + + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - name: Run manual build steps + if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{matrix.language}}"