Skip to content

Commit

Permalink
add codeql back in
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Jan 10, 2024
1 parent 38e3bcd commit f9deff2
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
#name: "CodeQL"
#
#on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
# schedule:
# - cron: "45 4 * * 3"
#
#concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
#
#env:
# JAVA_VERSION: 17
# JAVA_DISTRIBUTION: 'zulu'
#
#jobs:
# analyze:
# name: Analyze
# runs-on: ubuntu-latest
# permissions:
# actions: read
# contents: read
# security-events: write
#
# strategy:
# fail-fast: false
# matrix:
# language: [ javascript, java ]
#
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v3
# with:
# languages: ${{ matrix.language }}
# queries: +security-and-quality
#
# - name: Set up JDK
# uses: actions/setup-java@v4
# with:
# java-version: ${{env.JAVA_VERSION}}
# distribution: ${{env.JAVA_DISTRIBUTION}}
#
# - name: Autobuild
# uses: github/codeql-action/autobuild@v3
#
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v3
# with:
# category: "/language:${{ matrix.language }}"
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "45 4 * * 3"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
JAVA_VERSION: 17
JAVA_DISTRIBUTION: 'zulu'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript, java ]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{env.JAVA_VERSION}}
distribution: ${{env.JAVA_DISTRIBUTION}}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"

0 comments on commit f9deff2

Please sign in to comment.