Skip to content

Commit

Permalink
for testing5
Browse files Browse the repository at this point in the history
  • Loading branch information
IITI-tushar committed Dec 18, 2024
1 parent 5da59b6 commit 6585a3c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/codeql-codescan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,25 @@ jobs:
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: 'typescript' # Or 'python', 'typescript', etc.
languages: ${{ matrix.language }}
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
category: "language:${{ matrix.language }}"

- name: Upload SARIF to GitHub Security
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results-src.sarif

0 comments on commit 6585a3c

Please sign in to comment.