Merge pull request #154 from adulau/dependabot/github_actions/github/… #319
This file contains hidden or 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 analysis | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| schedule: | |
| # build the main branch every Monday morning | |
| - cron: '46 9 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'cpp' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6.0.2 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4.35.1 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Build Application using script | |
| run: | | |
| sudo apt install cmake ninja-build libssl-dev libpcap-dev libnet1-dev libjson-c-dev | |
| cmake -B ${{github.workspace}}/build -G Ninja | |
| ninja -C ${{github.workspace}}/build | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4.35.1 | |
| with: | |
| category: "/language:${{matrix.language}}" |