Skip to content

Commit

Permalink
Setup Code Scanning on browser-sdk (#1640)
Browse files Browse the repository at this point in the history
* Setup Code Scanning on browser-sdk

* restrict scan to production code

* remove comments

* simplify configuration

Co-authored-by: Bastien Caudan <[email protected]>
  • Loading branch information
ganeshkumarsv and bcaudan authored Jul 19, 2022
1 parent a4bc908 commit 97a51c6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: 'CodeQL config'

paths:
- packages/core/src
- packages/logs/src
- packages/rum/src
- packages/rum-core/src
- packages/rum-slim/src
paths-ignore:
- '**/*.spec.ts'
29 changes: 29 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'CodeQL'

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
config-file: .github/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 97a51c6

Please sign in to comment.