Skip to content

Commit

Permalink
Add CodeQL workflow for GitHub code scanning (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: LGTM Migrator <[email protected]>
  • Loading branch information
2 people authored and JounQin committed Oct 27, 2023
1 parent 4ae3c01 commit ec2e38c
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 180 deletions.
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:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "5 6 * * 5"

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@v3

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
},
"devDependencies": {
"@1stg/common-config": "^7.2.0",
"@octokit/request": "^6.2.2",
"tsx": "^3.9.0",
"@octokit/request": "^6.2.3",
"tsx": "^3.12.3",
"typescript": "^4.8.4",
"vercel": "^28.4.12",
"yarn-deduplicate": "^6.0.0"
"yarn-deduplicate": "^6.0.1"
},
"resolutions": {
"prettier": "^2.7.1"
"prettier": "^2.8.4"
},
"commitlint": {
"extends": "@1stg"
Expand Down
Loading

0 comments on commit ec2e38c

Please sign in to comment.