Skip to content

Commit

Permalink
Enabled CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
majastrz committed May 10, 2024
1 parent 7cd2cdf commit e16d630
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp

- name: Setup .NET Core
uses: actions/setup-dotnet@v4

Expand All @@ -52,6 +57,9 @@ jobs:
with:
flags: dotnet

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

build-generator:
name: "Build Generator"
runs-on: ubuntu-latest
Expand All @@ -62,6 +70,11 @@ jobs:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -85,6 +98,9 @@ jobs:
run: npm run build
working-directory: ./src/generator

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

build-autorest:
name: "Build Autorest.Bicep"
runs-on: ubuntu-latest
Expand All @@ -95,6 +111,11 @@ jobs:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -122,3 +143,5 @@ jobs:
run: npm test
working-directory: ./src/autorest.bicep

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

0 comments on commit e16d630

Please sign in to comment.