name: "Code scanning - action" on: push: branches: ['*/dev','*/contrib'] pull_request: # The branches below must be a subset of the branches above branches: ['*/dev','*/contrib'] jobs: CodeQL-Build: runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: 0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: config-file: ./.github/config/codeql-config.yml - name: Setup dotnet uses: actions/setup-dotnet@v1 with: dotnet-version: '6.0.x' - name: dotnet build run: dotnet build umbraco.sln -c SkipTests - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2