Skip to content

Commit 3b15497

Browse files
authored
chore(ci): Fix dependabot code scanning errors (#121)
* chore(ci): Fix dependabot code scanning errors Dependabot pushes a branch to the repo and opens a pull request. The pull request workflow runs properly, but the push workflow fails because dependabot doesn't have access to a read/write GITHUB_TOKEN and doesn't have access to the repo secrets. The quick fix is telling CI not to run the push event workflow for branches that start with `dependabot/`. * chore(ci): Add Node 22 to CI
1 parent 1a9703e commit 3b15497

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@
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:
2430
name: NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
2531
runs-on: ${{ matrix.os }}
2632
strategy:
2733
matrix:
28-
node-version: [16.x, 18.x, 20.x]
34+
node-version: [16.x, 18.x, 20.x, 22.x]
2935
os: [ubuntu-latest, windows-latest, macos-latest]
3036

3137
steps:

0 commit comments

Comments
 (0)