Skip to content

Commit

Permalink
Add CodeQL to replace LGTM (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
jodastephen authored Sep 25, 2022
1 parent a7493a3 commit 45e9b13
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ permissions:

jobs:
build:
permissions:
security-events: write # for github/codeql-action
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
Expand All @@ -38,10 +40,18 @@ jobs:
mvn --version
mkdir -p target
- name: Initialize CodeQL
uses: github/codeql-action/init@86f3159a697a097a813ad9bfa0002412d97690a4 #v2.1.25
with:
languages: java

- name: Maven build
run: |
mvn install site
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@86f3159a697a097a813ad9bfa0002412d97690a4 #v2.1.25

- name: Website
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/website') || startsWith(github.ref, 'refs/tags/v'))
env:
Expand Down

0 comments on commit 45e9b13

Please sign in to comment.