| 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 |
- latest |
| 10 |
pull_request: |
| 11 |
# The branches below must be a subset of the branches above |
| 12 |
branches: |
| 13 |
- main |
| 14 |
- latest |
| 15 |
schedule: |
| 16 |
# "At 03:00 on Monday" https://crontab.guru/#0_3_*_*_1 |
| 17 |
- cron: "0 3 * * 1" |
| 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 |
|
| 28 |
strategy: |
| 29 |
fail-fast: false |
| 30 |
matrix: |
| 31 |
language: [ javascript ] |
| 32 |
|
| 33 |
steps: |
| 34 |
- uses: actions/checkout@v3 |
| 35 |
- name: Setup git user |
| 36 |
run: | |
| 37 |
git config --global user.email "[email protected]" |
| 38 |
git config --global user.name "npm CLI robot" |
| 39 |
- name: Initialize CodeQL |
| 40 |
uses: github/codeql-action/init@v1 |
| 41 |
with: |
| 42 |
languages: ${{ matrix.language }} |
| 43 |
- name: Perform CodeQL Analysis |
| 44 |
uses: github/codeql-action/analyze@v1 |