Skip to content

Commit

Permalink
build(github): add codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
HugManh committed Apr 24, 2024
1 parent 06b21df commit 1920e5e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: codeQL

on:
workflow_dispatch:
push:
branches: [test]

jobs:
analyze:
name: Static analysis with CodeQL
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript, python, ruby

- name: Build and analyze
uses: github/codeql-action/analyze@v2
5 changes: 3 additions & 2 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: document
on:
workflow_dispatch:
push:
branches:
- test
branches: [test]

jobs:
dependency-review:
Expand All @@ -26,3 +25,5 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: './${{ matrix.root-build }}/package-lock.json'
- name: "Install node_modules"
run: npm install

0 comments on commit 1920e5e

Please sign in to comment.