Build and Upload CodeQL Database #4
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: Build and Upload CodeQL Database | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-codeql-db: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout juice-shop codebase | |
| uses: actions/checkout@v4 | |
| with: | |
| path: juice-shop | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: javascript-typescript | |
| source-root: juice-shop | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:javascript-typescript" | |
| - name: Export CodeQL database | |
| run: | | |
| # The database is created by the init/analyze actions at $RUNNER_TEMP/codeql_databases/javascript | |
| cp -r $RUNNER_TEMP/codeql_databases/javascript codeql-db | |
| - name: Upload CodeQL database artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: codeql-db | |
| path: codeql-db |