mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
ci: scan source files with codeql (#28943)
This commit is contained in:
parent
4fd24381c2
commit
757906e884
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -70,8 +70,6 @@ jobs:
|
|||||||
actions: read
|
actions: read
|
||||||
contents: read
|
contents: read
|
||||||
security-events: write
|
security-events: write
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
@ -81,15 +79,12 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
||||||
with:
|
with:
|
||||||
config: |
|
config: |
|
||||||
paths:
|
paths:
|
||||||
- 'packages/*/dist/**'
|
- 'packages/*/src/**'
|
||||||
- 'packages/nuxt/bin/**'
|
- 'packages/nuxt/bin/**'
|
||||||
- 'packages/schema/schema/**'
|
- 'packages/schema/schema/**'
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
@ -97,19 +92,13 @@ jobs:
|
|||||||
- '**/*.spec.ts'
|
- '**/*.spec.ts'
|
||||||
- '**/*.test.ts'
|
- '**/*.test.ts'
|
||||||
- '**/__snapshots__/**'
|
- '**/__snapshots__/**'
|
||||||
languages: javascript
|
languages: javascript-typescript
|
||||||
queries: +security-and-quality
|
queries: +security-and-quality
|
||||||
|
|
||||||
- name: Restore dist cache
|
|
||||||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: packages
|
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
||||||
with:
|
with:
|
||||||
category: "/language:javascript"
|
category: "/language:javascript-typescript"
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
Loading…
Reference in New Issue
Block a user