Skip to content

Commit 6ac80aa

Browse files
author
Kenneth Rosario
authored
chore: configure codeql workflow (#176)
1 parent adf81d1 commit 6ac80aa

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "master" ]
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
# Autobuild each of these seperate maven projects
24+
working-directory: ['invoker', 'functions-framework-api', 'function-maven-plugin']
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v2
33+
with:
34+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
35+
languages: java
36+
# If you wish to specify custom queries, you can do so here or in a config file.
37+
# By default, queries listed here will override any specified in a config file.
38+
# Prefix the list here with "+" to use these queries and those in the config file.
39+
40+
# 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
41+
# queries: security-extended,security-and-quality
42+
43+
44+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
45+
- name: Autobuild
46+
uses: github/codeql-action/autobuild@v2
47+
with:
48+
working-directory: ${{ matrix.working-directory }}
49+
50+
51+
- name: Perform CodeQL Analysis
52+
uses: github/codeql-action/analyze@v2
53+
with:
54+
category: ${{ matrix.working-directory }}

0 commit comments

Comments
 (0)