From 73f820db6b32d349d251d5c03cd5bd355f064dc7 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Mon, 24 Jun 2024 18:42:28 +0700 Subject: [PATCH 01/14] Create deno.yml --- .github/workflows/deno.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/deno.yml diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 00000000..782af35b --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,42 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow will install Deno then run `deno lint` and `deno test`. +# For more information see: https://github.com/denoland/setup-deno + +name: Deno + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v4 + + - name: Setup Deno + # uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 + with: + deno-version: v1.x + + # Uncomment this step to verify the use of 'deno fmt' on each commit. + # - name: Verify formatting + # run: deno fmt --check + + - name: Run linter + run: deno lint + + - name: Run tests + run: deno test -A From e30f15b5eb22eb08f6c12ef9f39eb3dbff6427b0 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Tue, 25 Jun 2024 16:36:09 +0700 Subject: [PATCH 02/14] Create devcontainer.json --- .devcontainer/devcontainer.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..ad93c14a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,5 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "features": { + } +} From 02b6aae7c4108315a80b17d8f7400ab648bf69f7 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Wed, 26 Jun 2024 20:54:40 +0700 Subject: [PATCH 03/14] Update Ssomsakth.yml --- .github/workflows/deno.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 782af35b..68a80090 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -6,7 +6,7 @@ # This workflow will install Deno then run `deno lint` and `deno test`. # For more information see: https://github.com/denoland/setup-deno -name: Deno +name: G.Dev.Ssomsak on: push: From da2736154321c587d7948af86360e47e79c60ca5 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Wed, 26 Jun 2024 20:55:56 +0700 Subject: [PATCH 04/14] Update ssomsakth.yml --- .github/workflows/deno.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 68a80090..a313572e 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -25,7 +25,7 @@ jobs: - name: Setup repo uses: actions/checkout@v4 - - name: Setup Deno + - name: Setup G.Dev.Ssomsak # uses: denoland/setup-deno@v1 uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 with: From f1d1f7b2cb89f8827759958e31c614e8af271b32 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Wed, 26 Jun 2024 20:58:03 +0700 Subject: [PATCH 05/14] Update ssomsakth.yml --- .github/workflows/deno.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index a313572e..52d77ccd 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -26,17 +26,17 @@ jobs: uses: actions/checkout@v4 - name: Setup G.Dev.Ssomsak - # uses: denoland/setup-deno@v1 - uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 + # uses: G.Dev.Ssomsakland/setup-G.Dev.Ssomsak@v1 + uses: denoland/setup-G.Dev.Ssomsak@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 with: deno-version: v1.x # Uncomment this step to verify the use of 'deno fmt' on each commit. # - name: Verify formatting - # run: deno fmt --check + # run: G.Dev.Ssomsak fmt --check - name: Run linter - run: deno lint + run: G.Dev.Ssomsak lint - name: Run tests - run: deno test -A + run: G.Dev.Ssomsak test -A From d71d20f4ad94b57bd15cd5fe840725483f78ef71 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Mon, 1 Jul 2024 11:08:38 +0700 Subject: [PATCH 06/14] Update .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3d5b1ad5..a2dd1a28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .firebase/ -*-debug.log +run node_modules .DS_Store From 4c66bca43957c4a928c0d07f5beb453ff89af4e9 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Mon, 1 Jul 2024 11:11:08 +0700 Subject: [PATCH 07/14] Update .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index a2dd1a28..de871883 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .firebase/ -run node_modules .DS_Store From 3e74410a161f477ed31294da8e4e640c7860ca93 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Wed, 3 Jul 2024 09:37:53 +0700 Subject: [PATCH 08/14] Update .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index de871883..c862dfd8 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ emulator-data functions/firebase-export-1655100519347QhDJMF -shared/package-lock.json +shared/package.json From 235e199f2d759196b804d1ef0d28c23951541804 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Wed, 3 Jul 2024 09:39:03 +0700 Subject: [PATCH 09/14] Update .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c862dfd8..de871883 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ emulator-data functions/firebase-export-1655100519347QhDJMF -shared/package.json +shared/package-lock.json From fc4bdb19405c101ed79283efcf968fd4cc83905e Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Wed, 3 Jul 2024 09:39:57 +0700 Subject: [PATCH 10/14] Update .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index de871883..a0cfec05 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .firebase/ node_modules + + .DS_Store emulator-data .runtimeconfig.json From 9e1b3fb01bc1ed5d2561bd16aa0ee65062b48649 Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Wed, 3 Jul 2024 09:41:20 +0700 Subject: [PATCH 11/14] Update .gitignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index a0cfec05..de871883 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ .firebase/ node_modules - - .DS_Store emulator-data .runtimeconfig.json From f06c256eb082caf489d7f1b19f8e839eff19779c Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Sat, 13 Jul 2024 21:00:31 +0700 Subject: [PATCH 12/14] Requests --- .vscode/settings.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..aed0290c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "gitlens.statusBar.format": "${author}, ${agoOrDate}${' via 'pullRequest}${id}${author}", + "githubPullRequests.ignoredPullRequestBranches": [ + "main" + ] +} \ No newline at end of file From abfab521fc1fd7e4b5071f341229e4d83d2dffea Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Sat, 13 Jul 2024 21:07:22 +0700 Subject: [PATCH 13/14] Update deno.yml --- .github/workflows/deno.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 52d77ccd..7391880e 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -6,7 +6,7 @@ # This workflow will install Deno then run `deno lint` and `deno test`. # For more information see: https://github.com/denoland/setup-deno -name: G.Dev.Ssomsak +name: deno on: push: From 1ad8b916d8e2ae8fa7d8342853cc861c18df99fd Mon Sep 17 00:00:00 2001 From: "G.Dev.Ssomsak" Date: Sat, 13 Jul 2024 23:15:39 +0700 Subject: [PATCH 14/14] Create codeql.yml Direct commit or PR Commit directly to the main branch --- .github/workflows/codeql.yml | 93 ++++++++++++++++++++++++++++++++++++ 1 file changed, 93 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 00000000..45e0ce74 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,93 @@ +# 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" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '33 10 * * 0' + +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' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + 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: javascript-typescript + build-mode: none + # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', '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 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + 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 + - 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@v3 + with: + category: "/language:${{matrix.language}}"