From 37b19011047ee3cb532809ab0dc4a139c7fce806 Mon Sep 17 00:00:00 2001 From: hwangsihu <129564966+hwangsihu@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:08:23 +0900 Subject: [PATCH 1/4] Update build-docker.yml Now, anyone who forks this repository can create their own Docker images, with the repository name also reflected in the image. --- .github/workflows/build-docker.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index ab8a208f0..ee6ab519c 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -4,7 +4,6 @@ on: push jobs: docker_publish: runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 @@ -19,7 +18,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/appujet/lavamusic + images: ghcr.io/${{ github.repository_owner }}/${{ github.repository }} - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: From cdc19925913ad848dc5abe8986485fa20f3ed0e0 Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Mon, 9 Dec 2024 16:20:53 +0900 Subject: [PATCH 2/4] Update Lavalink plugins --- Lavalink/example.application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lavalink/example.application.yml b/Lavalink/example.application.yml index 8790de2e3..68ba0b37e 100644 --- a/Lavalink/example.application.yml +++ b/Lavalink/example.application.yml @@ -116,7 +116,7 @@ lavalink: snapshot: false # set to true if you want to use snapshot builds - dependency: "com.github.topi314.sponsorblock:sponsorblock-plugin:3.0.1" snapshot: false # set to true if you want to use snapshot builds - - dependency: "dev.lavalink.youtube:youtube-plugin:1.10.2" + - dependency: "dev.lavalink.youtube:youtube-plugin:1.11.1" snapshot: false # set to true if you want to use snapshot builds pluginsDir: './plugins' server: From 59bd5bdae55fbbbcaaf00783e2df8a406f7f48f7 Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Tue, 10 Dec 2024 17:25:48 +0900 Subject: [PATCH 3/4] Update dependencies --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 06a4cc35d..7514ebcec 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "devDependencies": { "@biomejs/biome": "^1.9.4", "@types/i18n": "^0.13.12", - "@types/node": "^22.10.1", + "@types/node": "^22.10.2", "@types/signale": "^1.4.7", "prisma": "^6.0.1", "typescript": "^5.7.2" @@ -47,13 +47,13 @@ "dotenv": "^16.4.7", "genius-lyrics-api": "^3.2.1", "i18n": "^0.15.1", - "lavalink-client": "^2.4.1", + "lavalink-client": "^2.4.3", "node-system-stats": "^1.3.0", "signale": "^1.4.0", "topgg-autoposter": "^2.0.2", "tslib": "^2.8.1", - "undici": "^7.1.0", - "zod": "^3.23.8" + "undici": "^7.2.0", + "zod": "^3.24.1" }, "signale": { "displayScope": true, From 3f943dcea5b4dcafb71dfe9ba3531b4f29e0dde8 Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Wed, 11 Dec 2024 19:03:32 +0900 Subject: [PATCH 4/4] Fix CodeQL --- .github/workflows/codeql.yml | 121 ++++++++++++++++++++--------------- 1 file changed, 70 insertions(+), 51 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f8d5898d4..e002644dc 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,65 +9,84 @@ # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # -name: 'CodeQL' +name: "CodeQL Advanced" on: - push: - branches: ['main'] - pull_request: - # The branches below must be a subset of the branches above - branches: ['main'] + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '21 11 * * 2' jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: write - contents: write - security-events: write + 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 - strategy: - fail-fast: false - matrix: - language: ['javascript'] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Use only 'java' to analyze code written in Java, Kotlin or both - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + # required to fetch internal or private CodeQL packs + packages: read - steps: - - name: Checkout repository - uses: actions/checkout@v4 + # only required for workflows in private repositories + actions: read + contents: read - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - # 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. + 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 - # 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 + # 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. - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # 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 - # ℹī¸ 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 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 - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: '/language:${{matrix.language}}' + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}"