forked from CMU-17313Q/cmu-17313q-f24-nodebb-f24-NodeBB
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from CMU-17313Q/snyk-integration-new
Integrating Snyk Analysis Tool (attempt 2)
- Loading branch information
Showing
3 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Snyk Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- f24 | ||
workflow_call: # Usually called from deploy | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
checks: write # for coverallsapp/github-action to create new checks | ||
contents: read # for actions/checkout to fetch code | ||
|
||
jobs: | ||
snyk: | ||
runs-on: ubuntu-latest | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} # Ensure your token is added as a secret in GitHub | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: NPM Install | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
useLockFile: false | ||
working-directory: ./install # specify the correct path to package.json | ||
|
||
- name: Run Snyk Test | ||
run: npx snyk test --severity-threshold=high | ||
working-directory: ./install # specify the same path here as well |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: v1.1293.1 | ||
|
||
ignore: | ||
"SNYK-JS-BOOTBOX-174704": | ||
- "*": # ignore for all paths | ||
reason: "No patch or upgrade available for [email protected]" | ||
expires: "2025-12-31" | ||
|
||
"SNYK-JS-COOKIE-8163060": | ||
- "*": | ||
reason: "No immediate fix available for socket.io dependency" | ||
expires: "2025-12-31" | ||
|
||
"SNYK-JS-INFLIGHT-6095116": | ||
- "*": | ||
reason: "No direct patch available for [email protected]" | ||
expires: "2025-12-31" | ||
|
||
"SNYK-JS-JQUERYFORM-574783": | ||
- "*": | ||
reason: "No upgrade available for [email protected]" | ||
expires: "2025-12-31" | ||
|
||
"SNYK-JS-MARKDOWNIT-6483324": | ||
- "*": | ||
reason: "No upgrade available for [email protected]; requires update to nodebb-plugin-markdown or [email protected]" | ||
expires: "2025-12-31" | ||
|
||
"SNYK-JS-REQUEST-3361831": | ||
- "*": | ||
reason: "No upgrade available" | ||
expires: "2025-12-31" | ||
|
||
"SNYK-JS-TOUGHCOOKIE-5672873": | ||
- "*": | ||
reason: "No upgrade available" | ||
expires: "2025-12-31" | ||
|
||
"SNYK-JS-ZXCVBN-3257741": | ||
- "*": | ||
reason: "No upgrade path for [email protected]" | ||
expires: "2025-12-31" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters