1 # This file is automatically added by @npmcli/template-oss. Do not edit.
2
3 name: CodeQL
4
5 on:
6 push:
7 branches:
8 - main
9 pull_request:
10 branches:
11 - main
12 schedule:
13 # "At 10:00 UTC (03:00 PT) on Monday" https://crontab.guru/#0_10_*_*_1
14 - cron: "0 10 * * 1"
15
16 permissions:
17 contents: read
18
19 jobs:
20 analyze:
21 name: Analyze
22 runs-on: ubuntu-latest
23 permissions:
24 actions: read
25 contents: read
26 security-events: write
27 steps:
28 - name: Checkout
29 uses: actions/checkout@v4
30 - name: Setup Git User
31 run: |
32 git config --global user.email "npm-cli+bot@github.com"
33 git config --global user.name "npm CLI robot"
34 - name: Initialize CodeQL
35 uses: github/codeql-action/init@v3
36 with:
37 languages: javascript
38 - name: Perform CodeQL Analysis
39 uses: github/codeql-action/analyze@v3