Skip to content

Commit f383bd6

Browse files
authored
Merge pull request #3955 from lmsurpre/main
added initial codeql-analysis
2 parents a587c6c + b1acd4e commit f383bd6

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

.github/workflows/codeql-analysis.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "main" ]
9+
schedule:
10+
- cron: '28 19 * * 6'
11+
# allows the workflow to be manually executed any time
12+
workflow_dispatch:
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language: [ 'java' ]
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v3
31+
32+
# Initializes the CodeQL tools for scanning.
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v2
35+
with:
36+
languages: ${{ matrix.language }}
37+
# If you wish to specify custom queries, you can do so here or in a config file.
38+
# By default, queries listed here will override any specified in a config file.
39+
# Prefix the list here with "+" to use these queries and those in the config file.
40+
41+
# 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
42+
# queries: security-extended,security-and-quality
43+
44+
- name: Build
45+
run: |
46+
mvn -T2 -B install -f fhir-examples
47+
mvn -T2 -B compile test-compile -f fhir-parent
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v2
51+
52+
concurrency:
53+
group: codeql-${{ github.event.pull_request.number || github.sha }}
54+
cancel-in-progress: true

.github/workflows/security.yml

-52
This file was deleted.

0 commit comments

Comments
 (0)