Merge pull request #364 from SMI/dependabot/github_actions/svenstaro/… #357
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
schedule: | |
- cron: "29 14 * * 5" | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [python, csharp, java] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
if: ${{ matrix.language == 'java' }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
queries: +security-and-quality | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
if: ${{ matrix.language == 'python' || matrix.language == 'csharp' }} | |
- name: Build java | |
if: ${{ matrix.language == 'java' }} | |
run: | | |
sudo apt-get install -y libarchive-tools | |
mkdir -p nlp/uk.ac.dundee.hic.nerd/target/stanford-ner-2018-10-16 | |
curl -sL https://nlp.stanford.edu/software/stanford-ner-2018-10-16.zip | bsdtar -xf- -C nlp/uk.ac.dundee.hic.nerd/target/stanford-ner-2018-10-16 | |
mvn -f nlp/uk.ac.dundee.hic.nerd/pom.xml package | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "/language:${{ matrix.language }}" |