Merge pull request #7 from github/dependabot/npm_and_yarn/node-gyp-12… #43
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: "Code Scanning" | |
| on: [push, pull_request] | |
| permissions: | |
| actions: read # for github/codeql-action/init to get workflow details | |
| contents: read # for actions/checkout to fetch code | |
| security-events: write # for github/codeql-action/analyze to upload SARIF results | |
| jobs: | |
| CodeQL: | |
| name: ${{ matrix.friendlyName }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| include: | |
| - os: ubuntu-latest | |
| friendlyName: Ubuntu | |
| - os: windows-latest | |
| friendlyName: Windows | |
| - os: macos-latest | |
| friendlyName: macOS | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # Initializes the CodeQL tools for scanning. | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: javascript, cpp | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get install libsecret-1-dev | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| name: Install additional dependencies | |
| # Setup dependencies (and build native modules from source) | |
| - name: Install dependencies | |
| run: | | |
| npm install | |
| npm run build | |
| # Run code analysis | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 |