Skip to content

Commit c3912fd

Browse files
committedDec 18, 2024
chore: lint yaml
1 parent cc41384 commit c3912fd

File tree

1 file changed

+31
-32
lines changed

1 file changed

+31
-32
lines changed
 

‎.github/workflows/codeql.yml

+31-32
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: 'CodeQL'
1313

1414
on:
1515
push:
16-
branches: [ "main" ]
16+
branches: ['main']
1717
pull_request:
18-
branches: [ "main" ]
18+
branches: ['main']
1919
schedule:
2020
- cron: '40 6 * * 3'
2121

@@ -37,45 +37,44 @@ jobs:
3737
strategy:
3838
fail-fast: false
3939
matrix:
40-
language: [ 'javascript-typescript' ]
40+
language: ['javascript-typescript']
4141
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
4242
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
4343
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
4444
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4545

4646
steps:
47-
- name: Checkout repository
48-
uses: actions/checkout@v4
47+
- name: Checkout repository
48+
uses: actions/checkout@v4
4949

50-
# Initializes the CodeQL tools for scanning.
51-
- name: Initialize CodeQL
52-
uses: github/codeql-action/init@v2
53-
with:
54-
languages: ${{ matrix.language }}
55-
# If you wish to specify custom queries, you can do so here or in a config file.
56-
# By default, queries listed here will override any specified in a config file.
57-
# Prefix the list here with "+" to use these queries and those in the config file.
50+
# Initializes the CodeQL tools for scanning.
51+
- name: Initialize CodeQL
52+
uses: github/codeql-action/init@v2
53+
with:
54+
languages: ${{ matrix.language }}
55+
# If you wish to specify custom queries, you can do so here or in a config file.
56+
# By default, queries listed here will override any specified in a config file.
57+
# Prefix the list here with "+" to use these queries and those in the config file.
5858

59-
# 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
60-
# queries: security-extended,security-and-quality
59+
# 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
60+
# queries: security-extended,security-and-quality
6161

62+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
63+
# If this step fails, then you should remove it and run the build manually (see below)
64+
- name: Autobuild
65+
uses: github/codeql-action/autobuild@v2
6266

63-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
64-
# If this step fails, then you should remove it and run the build manually (see below)
65-
- name: Autobuild
66-
uses: github/codeql-action/autobuild@v2
67+
# ℹ️ Command-line programs to run using the OS shell.
68+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6769

68-
# ℹ️ Command-line programs to run using the OS shell.
69-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
70+
# If the Autobuild fails above, remove it and uncomment the following three lines.
71+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
7072

71-
# If the Autobuild fails above, remove it and uncomment the following three lines.
72-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
73+
# - run: |
74+
# echo "Run, Build Application using script"
75+
# ./location_of_script_within_repo/buildscript.sh
7376

74-
# - run: |
75-
# echo "Run, Build Application using script"
76-
# ./location_of_script_within_repo/buildscript.sh
77-
78-
- name: Perform CodeQL Analysis
79-
uses: github/codeql-action/analyze@v2
80-
with:
81-
category: "/language:${{matrix.language}}"
77+
- name: Perform CodeQL Analysis
78+
uses: github/codeql-action/analyze@v2
79+
with:
80+
category: '/language:${{matrix.language}}'

0 commit comments

Comments
 (0)