for testing10 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
debug: true | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "typescript-analysis" # Ensure this is unique | |
output: "results-typescript.sarif" # File generated in the working directory | |
- name: Upload SARIF to GitHub Security | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: "results-typescript.sarif" # Path to the generated file | |
category: "typescript-analysis" # Must match the analyze step |