Skip to content

Commit c1f474c

Browse files
ci: add CodeQL workflow for GitHub code scanning (#72)
Co-authored-by: LGTM Migrator <[email protected]>
1 parent 8c4978a commit c1f474c

File tree

8 files changed

+59
-10
lines changed

8 files changed

+59
-10
lines changed

.editorconfig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
root = true
1+
root=true
22

33
[*]
4-
indent_style = space
5-
indent_size = 2
6-
tab_width = 2
7-
end_of_line = lf
8-
charset = utf-8
9-
trim_trailing_whitespace = true
10-
insert_final_newline = true
4+
indent_style=space
5+
indent_size=2
6+
tab_width=2
7+
end_of_line=lf
8+
charset=utf-8
9+
trim_trailing_whitespace=true
10+
insert_final_newline=true

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: '23 2 * * 2'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language:
26+
- javascript
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v2
34+
with:
35+
languages: ${{ matrix.language }}
36+
queries: +security-and-quality
37+
38+
- name: Autobuild
39+
uses: github/codeql-action/autobuild@v2
40+
41+
- name: Perform CodeQL Analysis
42+
uses: github/codeql-action/analyze@v2
43+
with:
44+
category: '/language:${{ matrix.language }}'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.yarn/*
2+
!.yarn/plugins
13
*.tsbuildinfo
24
.*cache
35
node_modules

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CHANGELOG.md
2+
.yarn

.yarn/install-state.gz

-1.31 MB
Binary file not shown.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nodeLinker: node-modules
55
plugins:
66
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
77
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
8-
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
8+
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"clean-pkg-json": "^1.2.0",
3535
"eslint": "^8.57.1",
3636
"lint-staged": "^15.4.3",
37+
"prettier": "^3.5.3",
3738
"simple-git-hooks": "^2.11.1",
3839
"typescript": "^5.8.2"
3940
},

yarn.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3865,6 +3865,7 @@ __metadata:
38653865
clean-pkg-json: "npm:^1.2.0"
38663866
eslint: "npm:^8.57.1"
38673867
lint-staged: "npm:^15.4.3"
3868+
prettier: "npm:^3.5.3"
38683869
simple-git-hooks: "npm:^2.11.1"
38693870
typescript: "npm:^5.8.2"
38703871
peerDependencies:
@@ -10643,7 +10644,7 @@ __metadata:
1064310644
languageName: node
1064410645
linkType: hard
1064510646

10646-
"prettier@npm:>=3.0.0-alpha.3, prettier@npm:^3.1.1":
10647+
"prettier@npm:>=3.0.0-alpha.3, prettier@npm:^3.1.1, prettier@npm:^3.5.3":
1064710648
version: 3.5.3
1064810649
resolution: "prettier@npm:3.5.3"
1064910650
bin:

0 commit comments

Comments
 (0)