Skip to content

Commit

Permalink
Merge pull request #1 from vitalijr2/codeql
Browse files Browse the repository at this point in the history
Create codeql.yml
  • Loading branch information
vitalijr2 authored Nov 11, 2024
2 parents 4f0961a + 7d39bd6 commit 85595f1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "CodeQL"

on:
push:
branches: [ "**" ]
tags-ignore:
- v*
pull_request:
# The branches below must be a subset of the branches above
branches: [ "**" ]

permissions: read-all

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: java-kotlin
build-mode: manual
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{matrix.language}}
build-mode: ${{matrix.build-mode}}
- name: Build with Maven
run: ./mvnw --batch-mode
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit 85595f1

Please sign in to comment.