forked from kenken64/bitcoin-order-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 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: "linting-tool-scan" | ||
|
||
on: | ||
push: | ||
branches: [githubcicd] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies | ||
if: steps.cache-nodemodules.outputs.cache-hit != 'true' | ||
run: | | ||
npm ci --force | ||
- name: Installing JSHint | ||
run: | | ||
sudo npm install -g jshint | ||
- name: Change script permission | ||
run: | | ||
chmod +x scripts/jshint-script.sh | ||
- name: Run scan with JSHint | ||
run: scripts/jshint-script.sh | ||
|
||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: linting tool report | ||
path: | | ||
./JSHint-report |
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,37 @@ | ||
name: "sast-scan" | ||
|
||
on: | ||
push: | ||
branches: [githubcicd] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies | ||
if: steps.cache-nodemodules.outputs.cache-hit != 'true' | ||
run: | | ||
npm ci --force | ||
- name: OWASP Dependency Check | ||
run: | | ||
wget https://github.com/jeremylong/DependencyCheck/releases/download/v7.2.0/dependency-check-7.2.0-release.zip | ||
unzip dependency-check-7.2.0-release.zip | ||
- name: Run scan with ODC | ||
run: | | ||
dependency-check/bin/dependency-check.sh --project "bitcoin" --scan . > ODC-report | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: sast report | ||
path: | | ||
./ODC-report |
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,30 @@ | ||
name: "owasp-scan" | ||
|
||
on: | ||
push: | ||
branches: [githubcicd] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Change script permission | ||
run: | | ||
chmod +x scripts/zap-script.sh | ||
- name: ZAP scan | ||
run: scripts/zap-script.sh | ||
|
||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: zap report | ||
path: | | ||
./zap_baseline_report.html |