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 jobs:
17 analyze:
18 name: Analyze
19 runs-on: ubuntu-latest
20 permissions:
21 actions: read
22 contents: read
23 security-events: write
24 steps:
25 - name: Checkout
26 uses: actions/checkout@v4
27 - name: Setup Git User
28 run: |
29 git config --global user.email "npm-cli+bot@github.com"
30 git config --global user.name "npm CLI robot"
31 - name: Initialize CodeQL
32 uses: github/codeql-action/init@v3
33 with:
34 languages: javascript
35 - name: Perform CodeQL Analysis
36 uses: github/codeql-action/analyze@v3