* chore(.prettierignore): add *.yml file extension to the list of files ignored by Prettier to maintain consistent code formatting

* chore(codeql.yml): add assets/ts directory to the list of paths to be analyzed by CodeQL

* fix(codeql.yml): fix paths config
This commit is contained in:
Spedon
2023-11-04 23:11:30 +08:00
committed by GitHub
parent d6a65795bc
commit eb8ddf657d
2 changed files with 34 additions and 32 deletions

2
.github/codeql-config.yml vendored Normal file
View File

@@ -0,0 +1,2 @@
paths:
- assets/ts

View File

@@ -9,14 +9,14 @@
# the `language` matrix defined below to confirm you have the correct set of # the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages. # supported CodeQL languages.
# #
name: "CodeQL" name: 'CodeQL'
on: on:
push: push:
branches: [ "main" ] branches: ['main']
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ "main" ] branches: ['main']
schedule: schedule:
- cron: '27 16 * * 5' - cron: '27 16 * * 5'
@@ -59,7 +59,7 @@ jobs:
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality # queries: security-extended,security-and-quality
config-file: ./.github/codeql-config.yml
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below) # If this step fails, then you should remove it and run the build manually (see below)
@@ -79,4 +79,4 @@ jobs:
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2
with: with:
category: "/language:${{matrix.language}}" category: '/language:${{matrix.language}}'