Skip to content

a #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

a #12

Changes from all commits
Commits
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
22 changes: 11 additions & 11 deletions .github/workflows/complete-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build code, run unit test, run SAST, SCA, DAST security scans
name: Build code, run unit test, run SAST, SCA, DAST security scans-10
on: push

jobs:
build:
runs-on: ubuntu-latest
name: Run unit tests and SAST scan on the source code
name: Run unit tests and SAST scan on the source code #Name of Job
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
@@ -14,34 +14,34 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven cloud
run: mvn -B verify sonar:sonar -Dsonar.projectKey=javaprojectreachability -Dsonar.organization=javaprojectreachability -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
run: mvn -B verify sonar:sonar -Dsonar.projectKey=java-case-study-1960-project-key -Dsonar.organization=java-case-study-1960 -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
security:
runs-on: ubuntu-latest
needs: build
needs: build #For Sequnetial flow (Before run Security, Run the Build job)
name: Run the SCA scan on the source code
steps:
- uses: actions/checkout@master
- name: RunSnyk to check for vulnerabilities
uses: snyk/actions/maven@master
continue-on-error: true
- uses: actions/checkout@master # checkout Action
- name: RunSnyk to check for vulnerabilities # Name of Snyk Action
uses: snyk/actions/maven@master # Snyk Action
continue-on-error: true # Build not fail in case of error
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
zap_scan:
runs-on: ubuntu-latest
needs: security
needs: security #For Sequnetial flow (Before run Zap_scan, Run the Security job)
name: Run DAST scan on the web application
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
ref: master # Refering to Master Branch
- name: ZAP Scan
uses: zaproxy/action-baseline@v0.6.1
with:
docker_name: 'owasp/zap2docker-stable'
target: 'http://testphp.vulnweb.com/'
rules_file_name: '.zap/rules.tsv'
cmd_options: '-a'
cmd_options: '-a'