Skip to content
Open

test #71

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
277491b
Create Build-Scan.yml
marvin00799 Jul 27, 2025
cbee544
Update Build-Scan.yml
marvin00799 Jul 27, 2025
cc71ae2
Update Build-Scan.yml
marvin00799 Jul 27, 2025
401b651
Update Build-Scan.yml
marvin00799 Jul 27, 2025
5b3f488
Bump form-data and sqlite3
dependabot[bot] Jul 27, 2025
e2080e1
Merge pull request #1 from marvin00799/dependabot/npm_and_yarn/multi-…
marvin00799 Jul 27, 2025
fbda1fb
Bump minimist and mkdirp
dependabot[bot] Jul 27, 2025
8f9e06b
Merge pull request #2 from marvin00799/dependabot/npm_and_yarn/multi-…
marvin00799 Jul 27, 2025
52c8cea
Build.yml
marvin00799 Jul 27, 2025
ed72d76
Update Build-Scan.yml
marvin00799 Jul 27, 2025
e866d66
Update Build-Scan.yml
marvin00799 Jul 27, 2025
0cbbf40
Create Vuln-scan.yml
marvin00799 Jul 27, 2025
8bb04e2
Update Build-Scan.yml
marvin00799 Jul 27, 2025
fd9cd4a
Update Vuln-scan.yml
marvin00799 Jul 27, 2025
ef8adf7
Update Vuln-scan.yml
marvin00799 Jul 27, 2025
44db9e7
Update package.json
marvin00799 Jul 27, 2025
8f0276a
Update Vuln-scan.yml
marvin00799 Jul 27, 2025
0ede3df
Update Vuln-scan.yml
marvin00799 Jul 27, 2025
6d51f03
Delete .github/workflows/Vuln-scan.yml
marvin00799 Jul 27, 2025
2bd3c56
Delete .github/workflows/Build-Scan.yml
marvin00799 Jul 27, 2025
b8b11e9
Delete package-lock.json
marvin00799 Jul 27, 2025
2895185
Create Gitaction-test.yml
marvin00799 Jul 27, 2025
f11bb77
Update Gitaction-test.yml
marvin00799 Jul 27, 2025
093746f
Delete .github/workflows directory
marvin00799 Jul 27, 2025
aa62727
Create test.yml
marvin00799 Jul 27, 2025
4ad43b0
Update test.yml
marvin00799 Jul 27, 2025
5abf16f
Update test.yml
marvin00799 Jul 27, 2025
31bf354
Update test.yml
marvin00799 Jul 27, 2025
72b2cbe
Create npm-publish.yml
marvin00799 Jul 27, 2025
19153c2
Delete .github/workflows/npm-publish.yml
marvin00799 Jul 27, 2025
9ce0550
Delete .github/workflows/test.yml
marvin00799 Jul 27, 2025
107ce74
Create test.yml
marvin00799 Jul 27, 2025
f64b116
Update test.yml
marvin00799 Jul 27, 2025
15414a4
Update test.yml
marvin00799 Jul 27, 2025
70f4118
Update test.yml
marvin00799 Jul 27, 2025
0aa23c6
Create SNYK.yml
marvin00799 Jul 27, 2025
cc1e90e
Create Owaspmain.yml
marvin00799 Jul 27, 2025
2b08fd2
Create sy.yml
marvin00799 Jul 27, 2025
9dd3c1e
vuln scan.yml
marvin00799 Jul 27, 2025
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
33 changes: 33 additions & 0 deletions .github/workflows/Owaspmain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Full OWASP Security Scan

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: OWASP Full Vulnerability Scan
uses: dependency-check/Dependency-Check_Action@main
with:
project: 'My-App-Security-Report'
format: 'HTML JSON' # Generates both formats
fail_on_cvss: 0 # Shows ALL vulnerabilities (0 = don't fail)
additional_args: '--disableYarnAudit --disableNodeAudit' # Focus on OWASP data

- name: Upload HTML Report
uses: actions/upload-artifact@v3
with:
name: security-report-html
path: dependency-check-report.html

- name: Upload JSON Report
uses: actions/upload-artifact@v3
with:
name: security-report-json
path: dependency-check-report.json
30 changes: 30 additions & 0 deletions .github/workflows/SNYK.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Security Scan with OWASP

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Run OWASP Dependency-Check
- name: OWASP Dependency-Check Scan
uses: dependency-check/Dependency-Check_Action@main
with:
project: 'Your-Project-Name'
format: 'HTML' # Also supports XML, JSON, CSV
fail_on_cvss: 7 # Fails if vulnerabilities >= 7.0 CVSS score found
scan_dir: '.' # Scans your entire repo

# Upload report as artifact (optional)
- name: Upload Report
if: always()
uses: actions/upload-artifact@v3
with:
name: dependency-check-report
path: dependency-check-report.html
40 changes: 40 additions & 0 deletions .github/workflows/sy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Full OWASP Security Scan

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: OWASP Full Vulnerability Scan
uses: dependency-check/Dependency-Check_Action@main
with:
project: 'My-App-Security-Report'
format: 'HTML JSON CSV' # Multiple report formats
fail_on_cvss: 0 # Show ALL vulnerabilities (0 = display but don't fail)
scan_dir: '.' # Scan entire repository
additional_args: |
--log ./dc.log
--disableBundleAudit
--disableNodeAudit

- name: Upload Security Reports
uses: actions/upload-artifact@v4
with:
name: security-reports
path: |
dependency-check-report.*
dc.log
retention-days: 7 # Automatically delete after 1 week

- name: Show Vulnerability Count (Preview)
run: |
echo "Vulnerability Summary:"
jq '.dependencies[] | select(.vulnerabilities != null) | .vulnerabilities[] | .name' dependency-check-report.json | sort | uniq -c | sort -nr
if: always()
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
60 changes: 60 additions & 0 deletions .github/workflows/vuln scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: OWASP Security Scan with PDF Report

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Install wkhtmltopdf for PDF conversion
- name: Install PDF tools
run: |
sudo apt-get update
sudo apt-get install -y wkhtmltopdf

# Run OWASP Scan with multiple report formats
- name: OWASP Dependency Check
uses: dependency-check/Dependency-Check_Action@main
with:
project: 'Security-Report'
path: '.'
format: 'HTML JSON' # Generate both formats
out: './reports'
args: '--disableBundleAudit'

# Convert HTML report to PDF
- name: Generate PDF Report
run: |
wkhtmltopdf --enable-local-file-access \
reports/dependency-check-report.html \
reports/security-report.pdf

# Package all reports
- name: Package Reports
run: |
zip -r reports.zip reports/

# Upload all formats (PDF, HTML, JSON)
- name: Upload Security Reports
uses: actions/upload-artifact@v4
with:
name: security-reports
path: |
reports.zip
reports/security-report.pdf
reports/dependency-check-report.*
retention-days: 7

# Download link preview
- name: Show Download Info
run: |
echo "📥 Download these files from GitHub Actions artifacts:"
echo "- security-report.pdf (PDF version)"
echo "- dependency-check-report.html (Interactive HTML)"
echo "- dependency-check-report.json (Machine-readable)"
Loading