From 418261549aa3e9c757a990f1ed260b8775bf926c Mon Sep 17 00:00:00 2001 From: Zyntro Date: Thu, 6 Aug 2026 12:08:52 +0700 Subject: [PATCH] Add CodeQL workflow for security analysis Set up CodeQL analysis for JavaScript and TypeScript. --- .github/workflows/codeql.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 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..ac452f7e --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,43 @@ +name: CodeQL + +on: + push: + branches: [main, develop] + pull_request: + branches: [main] + schedule: + - cron: "30 3 * * 1" # ทุกวันจันทร์ + +permissions: + actions: read + contents: read + security-events: write + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + language: + - javascript-typescript + # - python + # - go + # - java-kotlin + + steps: + - uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: security-extended + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Analyze + uses: github/codeql-action/analyze@v3