2023-03-15 22:36:52 +03:00
|
|
|
name: "CodeQL"
|
2023-02-11 18:53:04 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-04-17 01:00:36 +03:00
|
|
|
branches: ["master"]
|
2024-02-13 19:02:05 +03:00
|
|
|
paths: ["_javascript/**/*.js"]
|
2023-02-11 18:53:04 +03:00
|
|
|
pull_request:
|
2024-02-13 19:02:05 +03:00
|
|
|
paths: ["_javascript/**/*.js"]
|
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 }}"
|
2024-02-13 19:02:05 +03:00
|
|
|
config-file: .github/codeql/codeql-config.yml
|
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 }}"
|