Skip to content

Commit

Permalink
Added codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Mar 15, 2023
1 parent 38794be commit c71d677
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion .github/workflows/githubactionsbuilds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,54 @@ jobs:
name: DeveImageOptimizerNuGet
path: ./artifacts/DeveImageOptimizerNuGet/
- name: Push NuGet
run: dotnet nuget push ./artifacts/DeveImageOptimizerNuGet/DeveImageOptimizer.1.0.${{needs.generate_version_number.outputs.build_number}}.nupkg -k ${{ secrets.NUGETTOKEN }} -s https://api.nuget.org/v3/index.json
run: dotnet nuget push ./artifacts/DeveImageOptimizerNuGet/DeveImageOptimizer.1.0.${{needs.generate_version_number.outputs.build_number}}.nupkg -k ${{ secrets.NUGETTOKEN }} -s https://api.nuget.org/v3/index.json

codeqlanalyze:
runs-on: windows-latest
needs: generate_version_number
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp', 'javascript' ]

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

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

- name: Run tree
run: tree /A

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
output: './artifacts'

- name: Run tree2
run: |
tree /A
cd
- uses: actions/upload-artifact@v3
with:
name: CodeQLAnalysis_${{ matrix.language }}
path: ./artifacts/${{ matrix.language }}.zip

0 comments on commit c71d677

Please sign in to comment.