Merge pull request #135 from seart-group/bug/cloning #121
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: 'Discover vulnerabilities with CodeQL' | |
on: | |
push: | |
branches: [ 'master' ] | |
paths: | |
- '**/*.java' | |
- '**/*.js' | |
pull_request: | |
branches: [ 'master' ] | |
paths: | |
- '**/*.java' | |
- '**/*.js' | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
analyze: | |
runs-on: 'ubuntu-latest' | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'java', 'javascript' ] | |
steps: | |
- name: Checkout latest | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Compile with autobuild | |
uses: github/codeql-action/autobuild@v2 | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: '/language:${{matrix.language}}' |