md/.github/workflows/codeql-analysis.yml

35 lines
642 B
YAML
Raw Normal View History

2021-02-27 14:03:32 +08:00
name: CodeQL
2021-01-25 09:32:18 +08:00
on:
push:
2021-02-26 10:47:40 +08:00
branches: [main]
2021-01-25 09:32:18 +08:00
pull_request:
2021-02-26 10:47:40 +08:00
branches: [main]
2021-01-25 09:32:18 +08:00
schedule:
2021-02-26 10:47:40 +08:00
- cron: "29 14 * * 2"
2021-01-25 09:32:18 +08:00
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
2021-02-26 10:47:40 +08:00
language: ["javascript"]
2021-01-25 09:32:18 +08:00
steps:
2021-02-26 10:47:40 +08:00
- name: Checkout repository
uses: actions/checkout@v2
2021-01-25 09:32:18 +08:00
2021-02-26 10:47:40 +08:00
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
2021-01-25 09:32:18 +08:00
2021-02-26 10:47:40 +08:00
- name: Autobuild
uses: github/codeql-action/autobuild@v1
2021-01-25 09:32:18 +08:00
2021-02-26 10:47:40 +08:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1