Skip to content

Commit ccd539c

Browse files
committed
Adding CodeQL analysis, and bump checkout and setup-node versions.
1 parent dd9f714 commit ccd539c

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checking out
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

19-
- name: Use Node.js 20
20-
uses: actions/setup-node@v3
19+
- name: Use Node.js v20
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: 20
2323
# registry-url is required to correctly setup authentication per https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry

.github/workflows/tests.yml

+20-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
node: [20, 18]
1818
steps:
1919
- name: Checking out
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Use Node.js v${{ matrix.node }}
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node }}
2626
cache: 'npm'
@@ -40,3 +40,21 @@ jobs:
4040

4141
- name: Check examples
4242
run: npm run examples
43+
analyze:
44+
name: Analyze CodeQL
45+
runs-on: ubuntu-latest
46+
permissions:
47+
actions: read
48+
contents: read
49+
security-events: write
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v4
53+
- name: Initialize CodeQL
54+
uses: github/codeql-action/init@v3
55+
with:
56+
languages: javascript-typescript
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@v3
59+
- name: Perform CodeQL Analysis
60+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)