Skip to content

Commit 4fc0b1f

Browse files
authored
update codeql to only run for code files (#2251)
1 parent 0d339af commit 4fc0b1f

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ name: "CodeQL"
1414
on:
1515
push:
1616
branches: ["main"]
17+
paths:
18+
- "**/*.go"
19+
- "**/*.ts"
20+
- "**/*.tsx"
1721
pull_request:
1822
branches: ["main"]
23+
paths:
24+
- "**/*.go"
25+
- "**/*.ts"
26+
- "**/*.tsx"
1927
types:
2028
- opened
2129
- synchronize

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
"editor.insertSpaces": true,
3939
"editor.autoIndent": "keep"
4040
},
41+
"[github-actions-workflow]": {
42+
"editor.defaultFormatter": "esbenp.prettier-vscode",
43+
"editor.insertSpaces": true,
44+
"editor.autoIndent": "keep"
45+
},
4146
"[go]": {
4247
"editor.defaultFormatter": "golang.go"
4348
},

0 commit comments

Comments
 (0)