docusaurus/.github/workflows/codeql-analysis.yml
Naveen ce08891af3
misc: pin actions to a full-length commit SHA (#6984)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-04-13 18:45:19 +02:00

39 lines
803 B
YAML

name: CodeQL
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: 25 22 * * 3
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- javascript
steps:
- name: Checkout repository
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3
- name: Initialize CodeQL
uses: github/codeql-action/init@883476649888a9e8e219d5b2e6b789dc024f690c # v1
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@883476649888a9e8e219d5b2e6b789dc024f690c # v1