Skip to content

Bump actions/upload-artifact from 3 to 4 #241

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #241

name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 2 * * 0'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp', 'javascript', 'typescript', 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
include-prerelease: false
- uses: actions/setup-node@v4
with:
node-version: 16
cache: 'npm'
cache-dependency-path: ./IntellitectTerminal.Web/package-lock.json
- name: Install npm packages
run: |
cd ./IntellitectTerminal.Web
npm ci
npm run build
shell: pwsh
- name: Build with dotnet
run: dotnet build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2