From 04128f27262ebf12341c4edfc45b9b27e5275abe Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Fri, 4 Jul 2025 23:01:38 +0700 Subject: [PATCH 01/27] Delete .github/workflows/jekyll-docker.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/jekyll-docker.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/jekyll-docker.yml diff --git a/.github/workflows/jekyll-docker.yml b/.github/workflows/jekyll-docker.yml deleted file mode 100644 index 60e57369de..0000000000 --- a/.github/workflows/jekyll-docker.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Jekyll site CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Build the site in the jekyll/builder container - run: | - docker run \ - -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ - jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future" From 59f9611da12b28adc77a7bdf192dd8349e4cf531 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Fri, 4 Jul 2025 23:04:18 +0700 Subject: [PATCH 02/27] ops: Add more mempool servers to elements.conf & ops: Bump elements to v23.3.0 (#8) * ops: Add more mempool servers to elements.conf * ops: Bump elements to v23.3.0 --------- Co-authored-by: wiz --- production/elements.conf | 16 ++++++++++++++++ production/install | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/production/elements.conf b/production/elements.conf index 14838a5aed..dcbb1856c9 100644 --- a/production/elements.conf +++ b/production/elements.conf @@ -11,6 +11,10 @@ txindex=1 [liquidv1] validatepegin=1 mainchainrpcport=8332 +#addnode=[2401:b140::92:201]:7042 +#addnode=[2401:b140::92:202]:7042 +#addnode=[2401:b140::92:203]:7042 +#addnode=[2401:b140::92:204]:7042 #addnode=[2401:b140:1::92:201]:7042 #addnode=[2401:b140:1::92:202]:7042 #addnode=[2401:b140:1::92:203]:7042 @@ -35,6 +39,10 @@ mainchainrpcport=8332 #addnode=[2401:b140:4::92:204]:7042 #addnode=[2401:b140:4::92:205]:7042 #addnode=[2401:b140:4::92:206]:7042 +#addnode=[2401:b140:5::92:201]:7042 +#addnode=[2401:b140:5::92:202]:7042 +#addnode=[2401:b140:5::92:203]:7042 +#addnode=[2401:b140:5::92:204]:7042 [liquidtestnet] rpcport=7040 @@ -58,6 +66,10 @@ signblockscript=51210217e403ddb181872c32a0cd468c710040b2f53d8cac69f18dad07985ee3 evbparams=dynafed:0::: addnode=liquid-testnet.blockstream.com:18892 addnode=liquidtestnet.com:18891 +#addnode=[2401:b140::92:201]:18891 +#addnode=[2401:b140::92:202]:18891 +#addnode=[2401:b140::92:203]:18891 +#addnode=[2401:b140::92:204]:18891 #addnode=[2401:b140:1::92:201]:18891 #addnode=[2401:b140:1::92:202]:18891 #addnode=[2401:b140:1::92:203]:18891 @@ -82,3 +94,7 @@ addnode=liquidtestnet.com:18891 #addnode=[2401:b140:4::92:204]:18891 #addnode=[2401:b140:4::92:205]:18891 #addnode=[2401:b140:4::92:206]:18891 +#addnode=[2401:b140:5::92:201]:18891 +#addnode=[2401:b140:5::92:202]:18891 +#addnode=[2401:b140:5::92:203]:18891 +#addnode=[2401:b140:5::92:204]:18891 diff --git a/production/install b/production/install index 92945c3105..1318ab3698 100755 --- a/production/install +++ b/production/install @@ -376,7 +376,7 @@ ELEMENTS_REPO_URL=https://github.com/ElementsProject/elements ELEMENTS_REPO_NAME=elements ELEMENTS_REPO_BRANCH=master #ELEMENTS_LATEST_RELEASE=$(curl -s https://api.github.com/repos/ElementsProject/elements/releases/latest|grep tag_name|head -1|cut -d '"' -f4) -ELEMENTS_LATEST_RELEASE=elements-23.2.7 +ELEMENTS_LATEST_RELEASE=elements-23.3.0 echo -n '.' BITCOIN_ELECTRS_REPO_URL=https://github.com/mempool/electrs From 712a47d83eb0be5e19f69e0257acd1c48c56b85c Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Fri, 4 Jul 2025 23:21:30 +0700 Subject: [PATCH 03/27] Create static.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/static.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000000..0ba82305f8 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 2a0ce49cbc273b9ef01dd2f7de27c4a537930188 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 00:10:18 +0700 Subject: [PATCH 04/27] Create docker-image.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000000..793d8e0e39 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) From 9c4a40e39578ff93f8127c65003bda10bf3df9b8 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 00:11:37 +0700 Subject: [PATCH 05/27] Potential fix for code scanning alert no. 47: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/docker-image.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 793d8e0e39..2c16d1a612 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,5 +1,8 @@ name: Docker Image CI +permissions: + contents: read + on: push: branches: [ "master" ] From b4ca8def2264f069b990d347d16de26804ceef14 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 04:39:26 +0700 Subject: [PATCH 06/27] Update jekyll-gh-pages.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/jekyll-gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index e31d81c586..0ebd768bf2 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -4,7 +4,7 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: ["master"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 22d9908db41fffef30e239e6563dff5417ee3f7a Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 05:09:45 +0700 Subject: [PATCH 07/27] Create ci_own.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/ci_own.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci_own.yml diff --git a/.github/workflows/ci_own.yml b/.github/workflows/ci_own.yml new file mode 100644 index 0000000000..746e72c280 --- /dev/null +++ b/.github/workflows/ci_own.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 840811345a39c07a5a6112f20dd8c8281b2bd4b1 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 05:12:48 +0700 Subject: [PATCH 08/27] Potential fix for code scanning alert no. 48: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/ci_own.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci_own.yml b/.github/workflows/ci_own.yml index 746e72c280..8015369b30 100644 --- a/.github/workflows/ci_own.yml +++ b/.github/workflows/ci_own.yml @@ -1,6 +1,8 @@ # This is a basic workflow to help you get started with Actions name: CI +permissions: + contents: read # Controls when the workflow will run on: From 1ec4f74749e33fbe18224433bc482a1987f12425 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 07:42:25 +0700 Subject: [PATCH 09/27] Update ci.yml (#14) Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 976fe5a7ac..82e7b68588 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -405,4 +405,5 @@ jobs: - name: Validate JSON syntax run: | cat mempool-config.json | jq - working-directory: docker/docker/backend \ No newline at end of file + working-directory: docker/docker/backend + From cf786419f272c7ce7c64ccdf4024fe7654c03492 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 07:47:09 +0700 Subject: [PATCH 10/27] Update docker-image.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2c16d1a612..c9cc7af173 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -17,5 +17,5 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) + - name: Build frontend Docker image + run: docker build -f docker/frontend/Dockerfile -t my-frontend-image:$(date +%s) From 4caed325a2eac113150a1b1a2d4dea13e6f744d3 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 07:54:36 +0700 Subject: [PATCH 11/27] Update jekyll-gh-pages.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> From db3ea5c37fafd5c764c491f137084a7358899f6d Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 08:17:58 +0700 Subject: [PATCH 12/27] Delete .github/workflows/docker-image.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/docker-image.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index c9cc7af173..0000000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Docker Image CI - -permissions: - contents: read - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Build frontend Docker image - run: docker build -f docker/frontend/Dockerfile -t my-frontend-image:$(date +%s) From c9140714904191af18d4fbd094094a43905f3454 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 08:24:06 +0700 Subject: [PATCH 13/27] Create SECURITY.md (#15) Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- SECURITY.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000000..034e848032 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. From 98b3e595e2fa80cefa5f07c3195fe4f7591968df Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 10:23:20 +0700 Subject: [PATCH 14/27] Create nextjs.yml (#16) Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/nextjs.yml | 93 ++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 .github/workflows/nextjs.yml diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml new file mode 100644 index 0000000000..974fcb9995 --- /dev/null +++ b/.github/workflows/nextjs.yml @@ -0,0 +1,93 @@ +# Sample workflow for building and deploying a Next.js site to GitHub Pages +# +# To get started with Next.js see: https://nextjs.org/docs/getting-started +# +name: Deploy Next.js site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=yarn" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT + exit 0 + else + echo "Unable to determine package manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + uses: actions/configure-pages@v5 + with: + # Automatically inject basePath in your Next.js configuration file and disable + # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: next + - name: Restore cache + uses: actions/cache@v4 + with: + path: | + .next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./out + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 18e681a89c83ceae858ad7afc295eb25ca43dc19 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 11:24:04 +0700 Subject: [PATCH 15/27] Potential fix for code scanning alert no. 25: Server-side request forgery Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .../api/acceleration/acceleration.routes.ts | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/backend/src/api/acceleration/acceleration.routes.ts b/backend/src/api/acceleration/acceleration.routes.ts index 082d533307..b07032b5a1 100644 --- a/backend/src/api/acceleration/acceleration.routes.ts +++ b/backend/src/api/acceleration/acceleration.routes.ts @@ -39,7 +39,20 @@ class AccelerationRoutes { } private async $getAcceleratorAccelerationsHistoryAggregated(req: Request, res: Response): Promise { - const url = `${config.MEMPOOL_SERVICES.API}/${req.originalUrl.replace('/api/v1/services/', '')}`; + const allowedPaths = { + 'accelerations': 'accelerations', + 'accelerations/history': 'accelerations/history', + 'accelerations/stats': 'accelerations/stats', + 'estimate': 'estimate', + }; + const userPath = req.originalUrl.replace('/api/v1/services/', ''); + const safePath = allowedPaths[userPath]; + if (!safePath) { + logger.err(`Invalid path requested: ${userPath}`, this.tag); + res.status(400).send({ error: 'Invalid path' }); + return; + } + const url = `${config.MEMPOOL_SERVICES.API}/${safePath}`; try { const response = await axios.get(url, { responseType: 'stream', timeout: 10000 }); for (const key in response.headers) { @@ -67,7 +80,20 @@ class AccelerationRoutes { } private async $getAcceleratorEstimate(req: Request, res: Response): Promise { - const url = `${config.MEMPOOL_SERVICES.API}/${req.originalUrl.replace('/api/v1/services/', '')}`; + const allowedPaths = { + 'accelerations': 'accelerations', + 'accelerations/history': 'accelerations/history', + 'accelerations/stats': 'accelerations/stats', + 'estimate': 'estimate', + }; + const userPath = req.originalUrl.replace('/api/v1/services/', ''); + const safePath = allowedPaths[userPath]; + if (!safePath) { + logger.err(`Invalid path requested: ${userPath}`, this.tag); + res.status(400).send({ error: 'Invalid path' }); + return; + } + const url = `${config.MEMPOOL_SERVICES.API}/${safePath}`; try { const response = await axios.post(url, req.body, { responseType: 'stream', timeout: 10000 }); for (const key in response.headers) { From 82483c705beb9e7e9269c5b5fa891928195a6092 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 12:47:16 +0700 Subject: [PATCH 16/27] Create rust.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000000..000bb2c428 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose From 506c36988db112362ba0f76ae01a241e6e35607a Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 12:49:26 +0700 Subject: [PATCH 17/27] Potential fix for code scanning alert no. 50: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/rust.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 000bb2c428..d7fb904853 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ "master" ] +permissions: + contents: read + env: CARGO_TERM_COLOR: always From fb648db9c212e8c6e02f8bf8d419b0c194dc6a92 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Tue, 9 Sep 2025 12:28:02 +0700 Subject: [PATCH 18/27] Update rust.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/rust.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d7fb904853..9d1618e22a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,5 +21,8 @@ jobs: - uses: actions/checkout@v4 - name: Build run: cargo build --verbose + working-directory: ./path/to/your/rust/project + - name: Run tests run: cargo test --verbose + working-directory: ./path/to/your/rust/project From 1ea60b9179cae8d3d190eea2b5c2f3423a3b5528 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Thu, 11 Sep 2025 01:16:38 +0700 Subject: [PATCH 19/27] Update rust.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9d1618e22a..3cc97f0017 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,8 +21,8 @@ jobs: - uses: actions/checkout@v4 - name: Build run: cargo build --verbose - working-directory: ./path/to/your/rust/project + working-directory: . - name: Run tests run: cargo test --verbose - working-directory: ./path/to/your/rust/project + working-directory: . From 03b0e6c57edda7d9a48717fd72533844e2451254 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Thu, 2 Oct 2025 13:25:11 +0700 Subject: [PATCH 20/27] Create cargo.yml (#23) Add a CircleCI configuration to run Rust formatting checks and tests via cargo.yml CI: Introduce a build-and-test job using cimg/rust:1.90.0 to run cargo fmt and cargo test Add caching for Cargo dependencies and build artifacts Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .circleci/cargo.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .circleci/cargo.yml diff --git a/.circleci/cargo.yml b/.circleci/cargo.yml new file mode 100644 index 0000000000..8f97737097 --- /dev/null +++ b/.circleci/cargo.yml @@ -0,0 +1,37 @@ +version: 2.1 + +jobs: + build-and-test: + docker: + - image: cimg/rust:1.90.0 + steps: + - checkout + - restore_cache: + keys: + - v1-cargo-{{ checksum "Cargo.lock" }} + - v1-cargo- + - run: + name: "Check formatting" + command: cargo fmt -- --check + - run: + name: "Run tests" + command: cargo test + - save_cache: + key: v1-cargo-{{ checksum "Cargo.lock" }} + paths: + - "~/.cargo/bin" + - "~/.cargo/registry/index" + - "~/.cargo/registry/cache" + - "~/.cargo/git/db" + - "target" + - run: + name: "Check formatting" + command: cargo fmt -- --check + - run: + name: "Run tests" + command: cargo test + +workflows: + ci: + jobs: + - build-and-test From bc3f6026381a9e7e959e5c949076926aab77aff6 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Thu, 2 Oct 2025 14:26:21 +0700 Subject: [PATCH 21/27] Update issue templates (#26) * Update issue templates * Update .github/ISSUE_TEMPLATE/00-bug-issue.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> * Update .github/ISSUE_TEMPLATE/30-feature-request.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> * Update .github/ISSUE_TEMPLATE/custom.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --------- Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/00-bug-issue.md | 6 +++++- .github/ISSUE_TEMPLATE/30-feature-request.md | 6 +++++- .github/ISSUE_TEMPLATE/custom.md | 10 ++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/custom.md diff --git a/.github/ISSUE_TEMPLATE/00-bug-issue.md b/.github/ISSUE_TEMPLATE/00-bug-issue.md index aaa5ef5c79..b95259775a 100644 --- a/.github/ISSUE_TEMPLATE/00-bug-issue.md +++ b/.github/ISSUE_TEMPLATE/00-bug-issue.md @@ -1,6 +1,10 @@ --- -name: 🐛 Bug Report +name: "\U0001F41B Bug Report" about: Report bugs (no support requests, please) +title: '' +labels: 'bug' +assignees: '' + ---