Skip to content

Commit

Permalink
Fix #85 Create CodeQL Wultra GitHub Action Parent (#29)
Browse files Browse the repository at this point in the history
* Fix #85 Create CodeQL Wultra GitHub Action Parent
 - Add new workflow file as parent workflow to perform codeql analysis
  • Loading branch information
jandusil authored Jul 11, 2023
1 parent dbab1c6 commit 0e0e8d7
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on:
workflow_call:
inputs:
languages:
description: 'The programming languages the project is written in.'
required: true
type: string
java-version:
description: 'The version of Java to use.'
required: false
type: string
default: '17'

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

strategy:
fail-fast: false
matrix:
language: ${{ fromJson(inputs.languages) }}

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

- name: Set up JDK ${{ inputs.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ inputs.java-version }}
distribution: 'temurin'
cache: maven

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"

0 comments on commit 0e0e8d7

Please sign in to comment.