Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OWASP scanning to CI #917

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ jobs:
- name: Install dependencies
run: npm install

- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
with:
project: 'nhsuk-frontend'
path: '.'
format: 'HTML'
out: 'reports'
args: >
--failOnCVSS 7
--nodePackageSkipDevDependencies
--nodeAuditSkipDevDependencies
--suppression owasp-dependency-check-suppressions.xml

- name: Upload OWAPS results
uses: actions/upload-artifact@master
with:
name: Depcheck report
path: ${{github.workspace}}/reports

- name: Sonar analysis
uses: sonarsource/sonarcloud-github-action@master
with:
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ tests/backstop/*
coverage/*
package-lock.json
package.json
reports/*
24 changes: 24 additions & 0 deletions owasp-dependency-check-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<!-- Ignored Vulnerabilities -->
<suppress>
<notes><![CDATA[file name: angular.min.js]]></notes>
<packageUrl regex="true">^pkg:javascript/angularjs@.*$</packageUrl>
<cve>CVE-2019-10768</cve>
</suppress>
<suppress>
<notes><![CDATA[file name: faye-websocket:0.10.0]]></notes>
<packageUrl regex="true">^pkg:npm/faye\-websocket@.*$</packageUrl>
<cve>CVE-2020-15133</cve>
</suppress>
<suppress>
<notes><![CDATA[file name: glob-parent:3.1.0]]></notes>
<packageUrl regex="true">^pkg:npm/glob\-parent@.*$</packageUrl>
<vulnerabilityName>GHSA-ww39-953v-wcq6</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[file name: glob-parent:3.1.0]]></notes>
<packageUrl regex="true">^pkg:npm/glob\-parent@.*$</packageUrl>
<vulnerabilityName>CVE-2020-28469</vulnerabilityName>
</suppress>
</suppressions>
Loading
Loading