Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Rewant Soni <[email protected]>
  • Loading branch information
rewantsoni committed Apr 4, 2024
1 parent 224d681 commit 4bd4d24
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Security Checks

on:
push:
branches: ['*']
pull_request:
branches: ['*']

jobs:
static_code_analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Static Code Analysis
run: sonar-scanner
- name: Upload SonarQube Report
uses: actions/upload-artifact@v2
with:
name: sonarqube-report
path: sonarqube-report.txt

dependency_scanning:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Dependency Scanning
run: snyk test

container_scanning:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Container Image Scanning
run: trivy image --severity HIGH,CRITICAL mydockerimage:latest

dast_scan:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: DAST Scan
run: zap-cli --start-scan --spider target_url --scan target_url --html-report zap-report.html

secret_detection:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Secret Detection
run: detect-secrets scan

security_linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Security Linting
run: bandit -r .

security_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Security Tests

0 comments on commit 4bd4d24

Please sign in to comment.