Add CodeQL action (#890)

This commit is contained in:
Jed Fox
2023-04-12 23:28:53 -04:00
committed by GitHub
parent ad9cd5fc4d
commit ba59deae5f
2 changed files with 38 additions and 0 deletions

32
.github/workflows/codeql.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: CodeQL
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '23 11 * * 6'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:javascript'