Skip to content

Commit cb011b7

Browse files
authored
chore(ci): Add code scanning & fix dependabot failures (#655)
1 parent e11ba4d commit cb011b7

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

.github/workflows/ci.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717

1818
name: Node CI
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
branches-ignore:
23+
- 'dependabot/**'
24+
pull_request:
25+
branches:
26+
- '*'
2127

2228
jobs:
2329
test:
@@ -29,10 +35,10 @@ jobs:
2935
os: [ubuntu-latest, windows-latest, macos-latest]
3036

3137
steps:
32-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v4
3339

3440
- name: Use Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v1
41+
uses: actions/setup-node@v4
3642
with:
3743
node-version: ${{ matrix.node-version }}
3844

@@ -41,11 +47,22 @@ jobs:
4147
node --version
4248
npm --version
4349
50+
- uses: github/codeql-action/init@v3
51+
with:
52+
languages: javascript
53+
queries: security-and-quality
54+
config: |
55+
paths-ignore:
56+
- coverage
57+
- node_modules
58+
4459
- name: npm install and test
4560
run: npm cit
4661
env:
4762
CI: true
4863

64+
- uses: github/codeql-action/analyze@v3
65+
4966
- uses: codecov/codecov-action@v4
5067
if: success()
5168
with:

.github/workflows/release-audit.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717

1818
name: Release Auditing
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
branches-ignore:
23+
- 'dependabot/**'
24+
pull_request:
25+
branches:
26+
- '*'
2127

2228
jobs:
2329
test:

0 commit comments

Comments
 (0)