Skip to content

Commit c967f34

Browse files
authored
Add CodeQL scanning for GitHub Actions (#4725)
1 parent e0aa0f7 commit c967f34

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
push:
1616
branches: [ main ]
1717
paths:
18-
- '.github/workflows/codeql-analysis.yml'
18+
- '.github/workflows/*.yml'
1919
- 'scripts/*.py'
2020
- 'archive/c/c/*.c'
2121
- 'archive/c/c/testinfo.yml'
@@ -41,7 +41,7 @@ on:
4141
branches:
4242
- 'main'
4343
paths:
44-
- '.github/workflows/codeql-analysis.yml'
44+
- '.github/workflows/*.yml'
4545
- 'scripts/*.py'
4646
- 'archive/c/c/*.c'
4747
- 'archive/c/c/testinfo.yml'

scripts/get_codeql_languages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class LanguageInfo:
3131
"archive/r/ruby/*.rb": LanguageInfo(language="ruby"),
3232
"archive/t/typescript/*.ts": LanguageInfo(language="typescript"),
3333
"archive/s/swift/*.swift": LanguageInfo(language="swift", build_mode="manual", os=MACOS),
34+
".github/workflows/*.yml": LanguageInfo(language="actions"),
3435
}
3536
ALL_CODEQL_LANGUAGES_FILES = {
3637
".github/workflows/codeql-analysis.yml",

0 commit comments

Comments
 (0)