Skip to content

Instantly share code, notes, and snippets.

@Moose0621
Created October 14, 2020 13:07
Show Gist options
  • Select an option

  • Save Moose0621/9c7ec7fa1cf0f47ab816e44b3c1faf16 to your computer and use it in GitHub Desktop.

Select an option

Save Moose0621/9c7ec7fa1cf0f47ab816e44b3c1faf16 to your computer and use it in GitHub Desktop.
name: CodeQL
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: javascript, java
# This repo fails to use the Autobuild from CodeQL
# - name: Autobuild
# uses: Anthophila/codeql-action/codeql/autobuild@master
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment