From 3d2242016fe139df2d605293a2c02b2692ea73f5 Mon Sep 17 00:00:00 2001 From: ktmouk Date: Wed, 19 Jun 2024 10:04:46 +0900 Subject: [PATCH] ci: add code-ql (#2) --- .github/workflows/code-ql.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/code-ql.yml diff --git a/.github/workflows/code-ql.yml b/.github/workflows/code-ql.yml new file mode 100644 index 0000000..849e1a5 --- /dev/null +++ b/.github/workflows/code-ql.yml @@ -0,0 +1,33 @@ +name: code-ql +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "29 20 * * 3" +jobs: + analyze: + runs-on: ubuntu-22.04 + timeout-minutes: 360 + permissions: + security-events: write + strategy: + fail-fast: false + matrix: + language: ["javascript-typescript"] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}"