Skip to content

Commit

Permalink
chore(workflows): enable github advanced security
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinfelici committed Oct 15, 2024
1 parent 1e80065 commit 09e84af
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
analyze:
runs-on: ubuntu-latest

steps:

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

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

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java

- name: Build with Maven
run: mvn clean install -DskipTests -T 1C

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit 09e84af

Please sign in to comment.