Skip to content

Commit ce4e774

Browse files
committed
ci: modify generated codeql.yml, only scan actions for now
1 parent 7544dc1 commit ce4e774

1 file changed

Lines changed: 25 additions & 19 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
1+
# Copyright 2026 The Apache Software Foundation
32
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
610
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11+
# http://www.apache.org/licenses/LICENSE-2.0
1112
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
1220
name: "CodeQL Advanced"
1321

1422
on:
@@ -24,9 +32,6 @@ jobs:
2432
name: Analyze (${{ matrix.language }})
2533
# Runner size impacts CodeQL analysis time. To learn more, please see:
2634
# - 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 (GitHub.com only)
29-
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
3035
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3136
permissions:
3237
# required for all workflows
@@ -43,16 +48,17 @@ jobs:
4348
fail-fast: false
4449
matrix:
4550
include:
51+
# Initially only enabling scans for github actions
4652
- language: actions
4753
build-mode: none
48-
- language: c-cpp
49-
build-mode: autobuild
50-
- language: java-kotlin
51-
build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
52-
- language: javascript-typescript
53-
build-mode: none
54-
- language: python
55-
build-mode: none
54+
#- language: c-cpp
55+
# build-mode: autobuild
56+
#- language: java-kotlin
57+
# build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
58+
#- language: javascript-typescript
59+
# build-mode: none
60+
#- language: python
61+
# build-mode: none
5662

5763
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
5864
# Use `c-cpp` to analyze code written in C, C++ or both

0 commit comments

Comments
 (0)