Skip to content

for testing4

for testing4 #4

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
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'typescript' # Or 'python', 'typescript', etc.
debug: true
- name: CodeQL Analysis for Directory
run: |
echo "Scanning directory: src"
codeql database create db-src --language=javascript --source-root=src # Modify language and directory accordingly
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:javascript-src"
output: results-src.sarif
- name: Upload SARIF to GitHub Security
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results-src.sarif