forked from PalisadoesFoundation/talawa-api
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.04 KB
/
codeql-codescan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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