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
1 parent
db65527
commit 5ba3463
Showing
6 changed files
with
118 additions
and
69 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,31 @@ | ||
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 | ||
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
#!/bin/bash | ||
|
||
jshint --exclude="node_modules/" --reporter=unix . > JSHint-report | ||
|
||
echo $? > /dev/null |
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,6 @@ | ||
#!/bin/bash | ||
|
||
docker pull owasp/zap2docker-stable | ||
docker run -i owasp/zap2docker-stable zap-baseline.py -t "https://kenken64.github.io/bitcoin-order-app/" -l PASS > zap_baseline_report.html | ||
|
||
echo $? > /dev/null |