2023-03-15 22:36:52 +03:00
|
|
|
name: "CodeQL"
|
2023-02-11 18:53:04 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-01-31 20:07:46 +03:00
|
|
|
paths: ["_javascript/**.js"]
|
2023-02-11 18:53:04 +03:00
|
|
|
pull_request:
|
2024-01-31 20:07:46 +03:00
|
|
|
paths: ["_javascript/**.js"]
|
2023-02-11 18:53:04 +03:00
|
|
|
schedule:
|
2023-03-15 22:36:52 +03:00
|
|
|
- cron: "0 0 * * 5"
|
2023-02-11 18:53:04 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-03-15 22:36:52 +03:00
|
|
|
language: ["javascript"]
|
2023-02-11 18:53:04 +03:00
|
|
|
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
|
|
|
|
|
|
steps:
|
2023-03-15 22:36:52 +03:00
|
|
|
- name: Checkout repository
|
2023-09-09 15:58:40 +03:00
|
|
|
uses: actions/checkout@v4
|
2023-02-11 18:53:04 +03:00
|
|
|
|
2023-03-15 22:36:52 +03:00
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
- name: Initialize CodeQL
|
2024-01-01 22:52:24 +03:00
|
|
|
uses: github/codeql-action/init@v3
|
2023-03-15 22:36:52 +03:00
|
|
|
with:
|
|
|
|
languages: "${{ matrix.language }}"
|
2023-02-11 18:53:04 +03:00
|
|
|
|
2023-03-15 22:36:52 +03:00
|
|
|
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
|
|
# If this step fails, then you should remove it and run the build manually (see below)
|
|
|
|
- name: Autobuild
|
2024-01-01 22:52:24 +03:00
|
|
|
uses: github/codeql-action/autobuild@v3
|
2023-02-11 18:53:04 +03:00
|
|
|
|
2023-03-15 22:36:52 +03:00
|
|
|
- name: Perform CodeQL Analysis
|
2024-01-01 22:52:24 +03:00
|
|
|
uses: github/codeql-action/analyze@v3
|
2023-03-15 22:36:52 +03:00
|
|
|
with:
|
|
|
|
category: "/language:${{ matrix.language }}"
|