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: windows-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v2

    # Initializes the CodeQL tools for scanning.
    - name: Initialize CodeQL
      uses: github/codeql-action/init@v1
              
    - run: |
        echo "Run Umbraco-CMS build"
        pwsh -command .\build\build.ps1

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@v1
      with:
        config-file: ./.github/config/codeql-config.yml
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: windows-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v2

    # Initializes the CodeQL tools for scanning.
    - name: Initialize CodeQL
      uses: github/codeql-action/init@v1
      with:
        config-file: ./.github/config/codeql-config.yml

    - run: |
        echo "Run Umbraco-CMS build"
        pwsh -command .\build\build.ps1

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@v1

Fix config file, should be on init
Fix config file, should be on init
