Skip to content

Commit

Permalink
ci: added codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Didenko committed Apr 9, 2024
1 parent 1609e8d commit c77cb8f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: checks

name: "Checks"

on:
pull_request:
push:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
pull_request:
branches:
- main
schedule:
- cron: "0 8 * * 6"

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

strategy:
fail-fast: false
matrix:
language: [ javascript ]

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"createRelease": "github",
"conventionalCommits": true,
"allowBranch": [
"master"
"main"
],
"message": "chore(release): publish"
}
Expand Down

0 comments on commit c77cb8f

Please sign in to comment.