ci: analyse github actions with codeql (#30293)

This commit is contained in:
Daniel Roe 2024-12-18 09:58:20 +00:00 committed by GitHub
parent 59f5a76d51
commit 1d795a5db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 13 deletions

View File

@ -1,10 +0,0 @@
paths:
- 'packages/*/dist/**'
- 'packages/nuxt/bin/**'
- 'packages/schema/schema/**'
paths-ignore:
- 'test/**'
- '**/*.test.js'
- '**/*.test.ts'
- '**/*.test.tsx'
- '**/__tests__/**'

View File

@ -69,6 +69,9 @@ jobs:
codeql: codeql:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
strategy:
matrix:
language: ['javascript-typescript', 'actions']
permissions: permissions:
actions: read actions: read
contents: read contents: read
@ -90,13 +93,12 @@ jobs:
- '**/*.spec.ts' - '**/*.spec.ts'
- '**/*.test.ts' - '**/*.test.ts'
- '**/__snapshots__/**' - '**/__snapshots__/**'
languages: javascript-typescript languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9 uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with: with:
category: "/language:javascript-typescript" category: "/language:${{ matrix.language }}"
typecheck: typecheck:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}