Skip to content
Merged
Show file tree
Hide file tree
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
48 changes: 24 additions & 24 deletions .github/workflows/oss_pygoat-devsecops-advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,30 +204,30 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4.1.0
# - name: Gitleaks
# continue-on-error: true
# # You may pin to the exact commit or the version.
# # uses: gitleaks/gitleaks-action@e6dab246340401bf53eec993b8f05aebe80ac636
# uses: gitleaks/gitleaks-action@v2.3.4
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# #GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
# - name: Depcheck
# uses: dependency-check/Dependency-Check_Action@main
# id: Depcheck
# with:
# project: 'test'
# path: '.'
# format: 'HTML'
# out: 'reports' # this is the default, no need to specify unless you wish to override it
# args: >
# --failOnCVSS 7
# --enableRetired
# - name: Upload Test results
# uses: actions/upload-artifact@master
# with:
# name: Depcheck report
# path: ${{github.workspace}}/reports
- name: Gitleaks
continue-on-error: true
# You may pin to the exact commit or the version.
# uses: gitleaks/gitleaks-action@e6dab246340401bf53eec993b8f05aebe80ac636
uses: gitleaks/gitleaks-action@v2.3.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
with:
project: 'test'
path: '.'
format: 'HTML'
out: 'reports' # this is the default, no need to specify unless you wish to override it
args: >
--failOnCVSS 7
--enableRetired
- name: Upload Test results
uses: actions/upload-artifact@master
with:
name: Depcheck report
path: ${{github.workspace}}/reports
test-run_devopsshield_scan_linux:
name: Run DevOps Shield Scan Linux
needs:
Expand Down
9 changes: 6 additions & 3 deletions labs/lab05.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 5 - Custom actions
# 5 - Holistic Compliance View with DevOps Shield UI
In this lab you will create and use custom actions.
> Duration: 15-20 minutes

Expand All @@ -9,9 +9,12 @@ References:
- [GitHub Actions Toolkit](https://github.com/actions/toolkit)
- [actions/github-script](https://github.com/actions/github-script)

## 5.1 Use the github-script action to apply a label to an issue
## 5.1 Run the Docker Container of DevOps Shield

1. Open the workflow file [github-script.yml](/.github/workflows/github-script.yml)
1. As per [DevOps Shield on DockerHub](https://hub.docker.com/r/devopsshield/devopsshield)
```
docker run -d -p 8080:8080 devopsshield/devopsshield
```
2. Edit the file and copy the following YAML content at the end of the file:
```YAML
apply-label:
Expand Down
50 changes: 0 additions & 50 deletions labs/lab06.md

This file was deleted.

230 changes: 0 additions & 230 deletions labs/lab07.md

This file was deleted.

6 changes: 2 additions & 4 deletions labs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ References:
- [ ] Module 1: Introduction to Defect Dojo
- [ ] Module 2: Explore Your Kubernetes Cluster
- [ ] Module 3: Running the Basic and Advanced DevSecOps Pipelines
- [ ] Module 4: Workflow Templates
- [ ] Module 5: Custom actions
- [ ] Module 6: Self-hosted runners
- [ ] Module 7: CI/CD
- [ ] Module 4: Adding Additional DevSecOps Controls
- [ ] Module 5: Holistic Compliance View with DevOps Shield UI
```
7. Fetch upstream to get the latest changes from the upstream repository