Skip to content

Commit

Permalink
Add CodeQL to replace LGTM (#34) (#125)
Browse files Browse the repository at this point in the history
Switch back to auto-latest tag in build, as I trust GitHub tags/code
  • Loading branch information
jodastephen authored Nov 23, 2022
1 parent 786545a commit da376fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ on:
pull_request:
branches:
- 'main'
schedule:
- cron: '41 19 * * 2'

permissions:
contents: read

jobs:
build:
permissions:
security-events: write # for github/codeql-action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@2c7a4878f5d120bd643426d54ae1209b29cc01a3 #v3.4.1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
Expand All @@ -35,10 +39,18 @@ jobs:
mvn --version
mkdir -p target
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java

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

- name: Website
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/website') || startsWith(github.ref, 'refs/tags/v'))
env:
Expand Down
3 changes: 3 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<action dev="jodastephen" type="update">
Switch master to main.
</action>
<action dev="jodastephen" type="update">
Switch LGTM to CodeQL.
</action>
</release>
<release version="1.0.2" date="2022-08-14" description="v1.0.2">
<action dev="jodastephen" type="update">
Expand Down

0 comments on commit da376fb

Please sign in to comment.