From 9ffa3e8b5f4c7df8772cd64ef8640646879f713f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Louren=C3=A7o?= Date: Fri, 22 Dec 2023 18:33:24 -0300 Subject: [PATCH] ci(codeql): updated configuration --- .github/workflows/codeql-analysis.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 88151aae..0309cc5d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,16 +1,12 @@ -# This file is automatically added by @npmcli/template-oss. Do not edit. - name: CodeQL on: push: branches: - main - - latest pull_request: branches: - main - - latest schedule: # "At 10:00 UTC (03:00 PT) on Monday" https://crontab.guru/#0_10_*_*_1 - cron: "0 10 * * 1" @@ -19,20 +15,33 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + timeout-minutes: 120 permissions: actions: read contents: read security-events: write + strategy: + fail-fast: false + matrix: + language: [ 'javascript-typescript' ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Setup Git User run: | git config --global user.email "h4ad+bot@viniciusl.com.br" git config --global user.name "H4ad CLI robot" + - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: - languages: [javascript, typescript] + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}"