Skip to content

for testing9

for testing9 #9

name: CodeQL codescan workflow
on:
pull_request:
branches:
- '**'
push:
branches:
- '**'
jobs:
CodeQL:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Analyse Code With CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'typescript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
debug: true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "language-${{ matrix.language }}"
output: results-${{ matrix.language }}.sarif # Generates SARIF file in current directory
- name: Upload SARIF to GitHub Security
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results-${{ matrix.language }}.sarif
category: "language-${{ matrix.language }}"