Skip to content

Commit

Permalink
for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
IITI-tushar committed Dec 18, 2024
1 parent 2440e4f commit dc6f53c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 21 deletions.
53 changes: 33 additions & 20 deletions .github/workflows/codeql-codescan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ name: CodeQL codescan workflow
on:
pull_request:
branches:
- '**'
- '**'
push:
branches:
- '**'
- '**'

jobs:
CodeQL:
Expand All @@ -29,23 +29,36 @@ jobs:
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'typescript']
# strategy:
# fail-fast: false
# matrix:
# language: [ 'typescript' ]
# directory: [ 'src/components', 'src/utils', 'src/services' ] # List of directories to scan

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
debug: true

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
debug: true

- name: CodeQL Analysis for Directory
run: |
echo "Scanning directory: ${{ matrix.directory }}"
codeql database create db-${{ matrix.directory }} --language=${{ matrix.language }} --source-root=${{ matrix.directory }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}-${{ matrix.directory }}"
output: results-${{ matrix.directory }}.sarif

- name: Upload SARIF to GitHub Security
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results-${{ matrix.directory }}.sarif


Binary file modified .node-version
Binary file not shown.
2 changes: 1 addition & 1 deletion src/typeDefs/unions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { gql } from "graphql-tag";

// Place fields alphabetically to ensure easier lookup and navigation.
export const unions = gql``;
// export const unions = gql``;

0 comments on commit dc6f53c

Please sign in to comment.