Skip to content

Commit 2d9bc8b

Browse files
vulnerability initial commit (#1)
* Initial code * Initial code * Initial code * Initial code
1 parent 84d830e commit 2d9bc8b

File tree

9 files changed

+4234
-0
lines changed

9 files changed

+4234
-0
lines changed

.github/workflows/vulnerability.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Vulnerability Tests
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: '16.x'
16+
- name: Install dependencies
17+
run: |-
18+
cd vulnerability
19+
npm ci
20+
- name: Install Playwright
21+
run: |-
22+
cd vulnerability
23+
npx playwright install --with-deps
24+
- name: Run Playwright tests
25+
run: |-
26+
cd vulnerability
27+
npx playwright test
28+
- uses: actions/upload-artifact@v2
29+
if: always()
30+
with:
31+
name: playwright-test-results
32+
path: vulnerability/test-results/

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
vulnerability/node_modules/
3+
vulnerability/test-results/
4+
vulnerability/playwright-report/

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# tests
22
Tests for openTDF
3+
4+
[Vulnerability](vulnerability)

vulnerability/.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SERVER_DATA={"attributes":"https://opentdf.us/v2/attributes","entitlements":"https://opentdf.us/v2/entitlements","authority":"https://keycloak.opentdf.us/auth/","clientId":"localhost-abacus","realm":"opentdf-realm"}

vulnerability/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Vulnerability
2+
3+
4+
## Overview
5+
6+
Automated checks for vulnerabilities identified during penetration testing
7+
8+
## Resources
9+
10+
[Playwright](https://playwright.dev/)
11+
12+
[OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)
13+
14+
## Execute
15+
16+
`npx playwright test`
17+
18+
## Debug
19+
20+
`PWDEBUG=console npx playwright test --debug`

0 commit comments

Comments
 (0)