forked from LabVIEW-Community-CI-CD/compare-vi-cli-action
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.13 KB
/
code-scanning.yml
File metadata and controls
48 lines (43 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Code Scanning
on:
pull_request:
branches:
- develop
- main
merge_group:
branches:
- develop
- main
push:
branches:
- develop
- main
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
concurrency:
group: code-scanning-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
codeql:
name: codeql (javascript-typescript)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v5
with:
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
queries: security-and-quality
- name: Analyze
uses: github/codeql-action/analyze@v4
with:
category: /language:javascript-typescript