Skip to content

Add Tailwind CLI setup to CodeQL workflow #49

Add Tailwind CLI setup to CodeQL workflow

Add Tailwind CLI setup to CodeQL workflow #49

name: "CodeQL"

Check failure on line 1 in .github/workflows/codeql-analysis.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/codeql-analysis.yml

Invalid workflow file

(Line: 40, Col: 1): Unexpected value 'steps'
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}}"