Skip to content

Commit 962f4ed

Browse files
Merge pull request #2 from emmanuel-knafo/main
brought lab 5
2 parents 5a99b6d + fdbf68a commit 962f4ed

5 files changed

Lines changed: 32 additions & 311 deletions

File tree

.github/workflows/oss_pygoat-devsecops-advanced.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -204,30 +204,30 @@ jobs:
204204
steps:
205205
- name: checkout
206206
uses: actions/checkout@v4.1.0
207-
# - name: Gitleaks
208-
# continue-on-error: true
209-
# # You may pin to the exact commit or the version.
210-
# # uses: gitleaks/gitleaks-action@e6dab246340401bf53eec993b8f05aebe80ac636
211-
# uses: gitleaks/gitleaks-action@v2.3.4
212-
# env:
213-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214-
# #GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
215-
# - name: Depcheck
216-
# uses: dependency-check/Dependency-Check_Action@main
217-
# id: Depcheck
218-
# with:
219-
# project: 'test'
220-
# path: '.'
221-
# format: 'HTML'
222-
# out: 'reports' # this is the default, no need to specify unless you wish to override it
223-
# args: >
224-
# --failOnCVSS 7
225-
# --enableRetired
226-
# - name: Upload Test results
227-
# uses: actions/upload-artifact@master
228-
# with:
229-
# name: Depcheck report
230-
# path: ${{github.workspace}}/reports
207+
- name: Gitleaks
208+
continue-on-error: true
209+
# You may pin to the exact commit or the version.
210+
# uses: gitleaks/gitleaks-action@e6dab246340401bf53eec993b8f05aebe80ac636
211+
uses: gitleaks/gitleaks-action@v2.3.4
212+
env:
213+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214+
#GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
215+
- name: Depcheck
216+
uses: dependency-check/Dependency-Check_Action@main
217+
id: Depcheck
218+
with:
219+
project: 'test'
220+
path: '.'
221+
format: 'HTML'
222+
out: 'reports' # this is the default, no need to specify unless you wish to override it
223+
args: >
224+
--failOnCVSS 7
225+
--enableRetired
226+
- name: Upload Test results
227+
uses: actions/upload-artifact@master
228+
with:
229+
name: Depcheck report
230+
path: ${{github.workspace}}/reports
231231
test-run_devopsshield_scan_linux:
232232
name: Run DevOps Shield Scan Linux
233233
needs:

labs/lab05.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 5 - Custom actions
1+
# 5 - Holistic Compliance View with DevOps Shield UI
22
In this lab you will create and use custom actions.
33
> Duration: 15-20 minutes
44
@@ -9,9 +9,12 @@ References:
99
- [GitHub Actions Toolkit](https://github.com/actions/toolkit)
1010
- [actions/github-script](https://github.com/actions/github-script)
1111

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

14-
1. Open the workflow file [github-script.yml](/.github/workflows/github-script.yml)
14+
1. As per [DevOps Shield on DockerHub](https://hub.docker.com/r/devopsshield/devopsshield)
15+
```
16+
docker run -d -p 8080:8080 devopsshield/devopsshield
17+
```
1518
2. Edit the file and copy the following YAML content at the end of the file:
1619
```YAML
1720
apply-label:

labs/lab06.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

labs/lab07.md

Lines changed: 0 additions & 230 deletions
This file was deleted.

labs/setup.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ References:
2424
- [ ] Module 1: Introduction to Defect Dojo
2525
- [ ] Module 2: Explore Your Kubernetes Cluster
2626
- [ ] Module 3: Running the Basic and Advanced DevSecOps Pipelines
27-
- [ ] Module 4: Workflow Templates
28-
- [ ] Module 5: Custom actions
29-
- [ ] Module 6: Self-hosted runners
30-
- [ ] Module 7: CI/CD
27+
- [ ] Module 4: Adding Additional DevSecOps Controls
28+
- [ ] Module 5: Holistic Compliance View with DevOps Shield UI
3129
```
3230
7. Fetch upstream to get the latest changes from the upstream repository

0 commit comments

Comments
 (0)