Skip to content

Commit

Permalink
Merge pull request #3955 from lmsurpre/main
Browse files Browse the repository at this point in the history
added initial codeql-analysis
  • Loading branch information
lmsurpre authored Sep 15, 2022
2 parents a587c6c + b1acd4e commit f383bd6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 52 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '28 19 * * 6'
# allows the workflow to be manually executed any time
workflow_dispatch:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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
# queries: security-extended,security-and-quality

- name: Build
run: |
mvn -T2 -B install -f fhir-examples
mvn -T2 -B compile test-compile -f fhir-parent
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

concurrency:
group: codeql-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
52 changes: 0 additions & 52 deletions .github/workflows/security.yml

This file was deleted.

0 comments on commit f383bd6

Please sign in to comment.