Skip to content

Commit 84dd4ce

Browse files
anupsvseanmcgary
authored andcommitted
Create codeql.yml
1 parent ac63806 commit 84dd4ce

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/codeql.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
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+
#
12+
name: "CodeQL Advanced"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
branches: [ "master" ]
19+
schedule:
20+
- cron: '40 2 * * 4'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze (${{ matrix.language }})
25+
runs-on: 'ubuntu-latest'
26+
permissions:
27+
security-events: write
28+
packages: read
29+
actions: read
30+
contents: read
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
include:
36+
- language: javascript-typescript
37+
build-mode: autobuild
38+
- language: python
39+
build-mode: autobuild
40+
- language: go
41+
build-mode: autobuild
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
45+
46+
# Add any setup steps before running the `github/codeql-action/init` action.
47+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
48+
# or others). This is typically only required for manual builds.
49+
# - name: Setup runtime (example)
50+
# uses: actions/setup-example@v1
51+
52+
# Initializes the CodeQL tools for scanning.
53+
- name: Initialize CodeQL
54+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8
55+
with:
56+
languages: ${{ matrix.language }}
57+
build-mode: ${{ matrix.build-mode }}
58+
59+
- name: Perform CodeQL Analysis
60+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8
61+
with:
62+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)