Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit 0a81b16

Browse files
committed
fixes
1 parent 2c4d2aa commit 0a81b16

File tree

4 files changed

+389
-661
lines changed

4 files changed

+389
-661
lines changed

.github/workflows/security.yml

+16-17
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,35 @@ jobs:
2424
uses: actions/setup-node@v3
2525
with:
2626
node-version: 20
27+
- name: Install Dependencies
28+
run: npm i
2729
- name: Prepare Snyk
2830
uses: snyk/actions/setup@master
29-
- name: Install ESLint
30-
run: |
31-
npm install eslint@latest
32-
npm install @microsoft/[email protected]
33-
- name: Prepare CodeQL
34-
uses: github/codeql-action/init@v2
35-
with:
36-
languages: javascript
3731
- name: Run Snyk Code test
38-
run: snyk code test --sarif > snyk-code.sarif || true
32+
run: snyk code test --sarif > snyk-code.sarif
33+
continue-on-error: true
3934
env:
4035
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
36+
- name: Upload Snyk results to GitHub
37+
uses: github/codeql-action/upload-sarif@v2
38+
with:
39+
sarif_file: snyk-code.sarif
40+
wait-for-processing: true
4141
- name: Run ESLint
4242
run: npx eslint .
4343
--format @microsoft/eslint-formatter-sarif
4444
--output-file eslint-results.sarif
4545
continue-on-error: true
46-
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@v2
48-
with:
49-
category: "/language:javascript"
5046
- name: Upload ESLint results to GitHub
5147
uses: github/codeql-action/upload-sarif@v2
5248
with:
5349
sarif_file: eslint-results.sarif
5450
wait-for-processing: true
55-
- name: Upload Snyk results to GitHub
56-
uses: github/codeql-action/upload-sarif@v2
51+
- name: Prepare CodeQL
52+
uses: github/codeql-action/init@v2
5753
with:
58-
sarif_file: snyk-code.sarif
59-
wait-for-processing: true
54+
languages: javascript
55+
- name: Perform CodeQL Analysis
56+
uses: github/codeql-action/analyze@v2
57+
with:
58+
category: "/language:javascript"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ lib-cov
1616
*.gz
1717
coverage
1818
.nyc_output
19+
*.sarif
1920

2021
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2122
.grunt

0 commit comments

Comments
 (0)