-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.22 KB
/
codeql.yml
File metadata and controls
45 lines (38 loc) · 1.22 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
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {}
permissions:
contents: read
jobs:
noop-act:
# Show a successful no-op when running locally under nektos/act
if: ${{ github.actor == 'nektos/act' }}
runs-on: ubuntu-latest
steps:
- name: noop (act)
run: echo "Skipping CodeQL under act; use GitHub-hosted runners for real analysis."
analyze:
# Skip on act by default to avoid false failures and missing services
if: ${{ github.actor != 'nektos/act' }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Initialize CodeQL
uses: github/codeql-action/init@528ca598d956c91826bd742262cdfc5d02b77710
with:
languages: javascript-typescript
- name: Autobuild
uses: github/codeql-action/autobuild@528ca598d956c91826bd742262cdfc5d02b77710
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@528ca598d956c91826bd742262cdfc5d02b77710
with:
category: "/language:javascript"