Initial commit #11
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 Advanced" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| schedule: | |
| - cron: '36 9 * * 5' | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: 'ubuntu-latest' | |
| permissions: | |
| security-events: write | |
| packages: read | |
| actions: read | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: actions | |
| build-mode: none | |
| - language: csharp | |
| build-mode: manual | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - name: Setup .NET | |
| if: matrix.language == 'csharp' | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| dotnet-quality: 'preview' | |
| - name: Setup Node.js | |
| if: matrix.language == 'csharp' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/iron | |
| - name: Install dependencies | |
| if: matrix.language == 'csharp' | |
| run: | | |
| npm install tailwindcss @tailwindcss/cli | |
| - name: Manually build code | |
| if: matrix.build-mode == 'manual' && matrix.language == 'csharp' | |
| working-directory: ./src | |
| run: | | |
| dotnet build --configuration release | |
| dotnet format --verify-no-changes --severity info | |
| - name: Manually build container image | |
| if: matrix.build-mode == 'manual' && matrix.language == 'csharp' | |
| working-directory: ./src | |
| run: | | |
| dotnet publish --os linux --arch x64 --configuration release | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:${{matrix.language}}" |