Skip to content

Commit 14de2c8

Browse files
authored
Add CodeQL Analysis (#185)
* Add CodeQL workflow * Add or update CodeQL workflow * Add or update CodeQL workflow * Add or update CodeQL workflow * Add or update CodeQL workflow * Add or update CodeQL workflow
1 parent 938ba84 commit 14de2c8

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/codeql.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ on:
1818
# The branches below must be a subset of the branches above
1919
branches: ['main']
2020
schedule:
21-
- cron: '38 18 * * 5'
21+
- cron: '30 14 * * 4'
2222

2323
jobs:
2424
analyze:
2525
name: Analyze
2626
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
27+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
2728
permissions:
2829
actions: read
2930
contents: read
@@ -33,7 +34,7 @@ jobs:
3334
fail-fast: false
3435
matrix:
3536
language: ['javascript']
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
3738
# Use only 'java' to analyze code written in Java, Kotlin or both
3839
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
3940
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
@@ -53,22 +54,20 @@ jobs:
5354

5455
# 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
5556
# queries: security-extended,security-and-quality
57+
config: |
58+
paths-ignore:
59+
- '**/*.test.js'
60+
- '**/*.spec.js'
61+
- '**/*.test.ts'
62+
- '**/*.spec.ts'
63+
- '**/*.test.tsx'
64+
- '**/*.spec.tsx'
5665
57-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
66+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
5867
# If this step fails, then you should remove it and run the build manually (see below)
5968
- name: Autobuild
6069
uses: github/codeql-action/autobuild@v2
6170

62-
# ℹ️ Command-line programs to run using the OS shell.
63-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
64-
65-
# If the Autobuild fails above, remove it and uncomment the following three lines.
66-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
67-
68-
# - run: |
69-
# echo "Run, Build Application using script"
70-
# ./location_of_script_within_repo/buildscript.sh
71-
7271
- name: Perform CodeQL Analysis
7372
uses: github/codeql-action/analyze@v2
7473
with:

0 commit comments

Comments
 (0)