Skip to content

Commit e2a2a46

Browse files
authored
Update codeql.yml
1 parent 0ab7862 commit e2a2a46

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed

.github/workflows/codeql.yml

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@ on:
1919
schedule:
2020
- cron: '34 11 * * 1'
2121

22+
permissions:
23+
contents: read
24+
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
27+
cancel-in-progress: true
28+
2229
jobs:
2330
analyze:
2431
name: Analyze
25-
# Runner size impacts CodeQL analysis time. To learn more, please see:
26-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27-
# - https://gh.io/supported-runners-and-hardware-resources
28-
# - https://gh.io/using-larger-runners
29-
# Consider using larger runners for possible analysis time improvements.
3032
runs-on: windows-latest
31-
timeout-minutes: ${{ (matrix.language == 'c-cpp' && 120) || 360 }}
33+
timeout-minutes: 10
3234
permissions:
3335
actions: read
3436
contents: read
@@ -38,10 +40,6 @@ jobs:
3840
fail-fast: false
3941
matrix:
4042
language: [ 'c-cpp' ]
41-
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
42-
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
43-
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
44-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4543

4644
steps:
4745
- name: Checkout repository
@@ -54,30 +52,12 @@ jobs:
5452
uses: github/codeql-action/init@v2
5553
with:
5654
languages: ${{ matrix.language }}
57-
# If you wish to specify custom queries, you can do so here or in a config file.
58-
# By default, queries listed here will override any specified in a config file.
59-
# Prefix the list here with "+" to use these queries and those in the config file.
60-
61-
# 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
62-
# queries: security-extended,security-and-quality
63-
6455

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

70-
# ℹ️ Command-line programs to run using the OS shell.
71-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
72-
73-
# If the Autobuild fails above, remove it and uncomment the following three lines.
74-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
75-
76-
# - run: |
77-
# echo "Run, Build Application using script"
78-
# ./location_of_script_within_repo/buildscript.sh
79-
8061
- name: Perform CodeQL Analysis
8162
uses: github/codeql-action/analyze@v2
82-
with:
83-
category: "/language:${{matrix.language}}"
63+

0 commit comments

Comments
 (0)