Skip to content

chore: update pre-commit config to exclude submodules and fix formatting #77

chore: update pre-commit config to exclude submodules and fix formatting

chore: update pre-commit config to exclude submodules and fix formatting #77

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '43 7 * * 4'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'python', 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get submodules
run: git submodule update --init --recursive
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Update the build system
run: sudo apt-get update && sudo apt-get upgrade -y
- name: Install dependencies
run: sudo apt-get install -y gcc g++ cmake libcfitsio-dev zlib1g-dev libssl-dev libzip-dev libnova-dev libfmt-dev gettext
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# Uncomment and modify the following lines if the Autobuild fails
# - run: |
# mkdir build
# cd build
# cmake ..
# make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"