Skip to content

Commit

Permalink
Introduce CodeQL analysis
Browse files Browse the repository at this point in the history
While there, tweak some indentation in another GitHub Actions workflow
file.
  • Loading branch information
Stephan202 committed Apr 8, 2023
1 parent ae22e0e commit 9005796
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
steps:
# We run the build twice for each supported JDK: once against the
# original Error Prone release, using only Error Prone checks available
# on Maven Central, and once against the Picnic Error Prone fork,
# additionally enabling all checks defined in this project and any
# Error Prone checks available only from other artifact repositories.
# We run the build twice for each supported JDK: once against the
# original Error Prone release, using only Error Prone checks available
# on Maven Central, and once against the Picnic Error Prone fork,
# additionally enabling all checks defined in this project and any Error
# Prone checks available only from other artifact repositories.
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CodeQL
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
schedule:
- cron: '0 4 * * 1'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
strategy:
fail-fast: false
matrix:
language: [ java, ruby ]
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
- name: Initialize CodeQL
uses: github/codeql-action/[email protected]
with:
languages: ${{ matrix.language }}
# XXX: Check whether we should do this instead.
#- name: Set up JDK
# uses: actions/[email protected]
# with:
# java-version: 17.0.6
# distribution: temurin
# cache: maven
#- name: Perform minimal build
# run: mvn -T1C clean install -DskipTests -Dverification.skip
- name: Perform autobuild
uses: github/codeql-action/[email protected]
- name: Perform CodeQL analysis
uses: github/codeql-action/[email protected]
with:
category: "/language:${{matrix.language}}"

0 comments on commit 9005796

Please sign in to comment.