Skip to content

Commit 783a180

Browse files
committed
tools: add codeql nightly
Refs: nodejs#57535
1 parent b9b4cb7 commit 783a180

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "CodeQL"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
permissions:
15+
actions: read
16+
contents: read
17+
security-events: write
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
language: ["cpp", "javascript", "python", "typescript"]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
28+
# Initializes the CodeQL tools for scanning.
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
36+
37+
# ℹ️ Command-line programs to run using the OS shell.
38+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
39+
40+
# If the Autobuild fails above, remove it and uncomment the following three lines.
41+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
42+
43+
# - run: |
44+
# echo "Run, Build Application using script"
45+
# ./location_of_script_within_repo/buildscript.sh
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
49+
with:
50+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)