Add Tailwind CLI setup to CodeQL workflow #49
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" | ||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '30 1 * * 6' | ||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: [ 'csharp' ] | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| queries: security-extended,security-and-quality | ||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
| steps: | ||
| # Vorherige Schritte laden den Quellcode und richten die Umgebung ein | ||
| # Laedt die Tailwind CLI herunter und konfiguriert zwingend benoetigte Ausfuehrungsrechte | ||
| - name: Download and Configure Tailwind CLI | ||
| run: | | ||
| wget https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 | ||
| chmod +x tailwindcss-linux-x64 | ||
| mv tailwindcss-linux-x64 tailwindcss | ||
| # Startet den eigentlichen Kompilierungsvorgang der Projektmappe | ||
| - name: Build | ||
| run: dotnet build src/TicketsPlease.slnx | ||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||