Skip to content

Commit 6075258

Browse files
Update lab05.md
1 parent 45c7eee commit 6075258

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

labs/lab05.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,11 @@ References:
1515
```
1616
docker run -d -p 8080:8080 devopsshield/devopsshield
1717
```
18-
2. Edit the file and copy the following YAML content at the end of the file:
19-
```YAML
20-
apply-label:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/github-script@v7
24-
with:
25-
script: |
26-
github.rest.issues.addLabels({
27-
issue_number: context.issue.number,
28-
owner: context.repo.owner,
29-
repo: context.repo.repo,
30-
labels: ['Training']
31-
})
32-
```
33-
3. Commit the changes into the `main` branch
18+
![image](https://github.com/devopsshield/devsecops-workshop/assets/112144174/7ca6e4bf-da09-42b2-b4db-b492cdd01f25)
19+
2. Log into http://localhost:8080 with username **devopsshield** and password **devopsshield**
20+
![image](https://github.com/devopsshield/devsecops-workshop/assets/112144174/24c1b52e-4a12-4c9a-89c0-155bc5f00358)
21+
![image](https://github.com/devopsshield/devsecops-workshop/assets/112144174/46389907-1f3e-49b8-b6e5-0b81a9886001)
22+
3. Once logged in,
3423
4. Open a new issue or edit an exiting one to trigger the workflow. If the `Issues` tab is not visible, open your repository settings and enable it.
3524
5. Go to `Actions` and see the details of your running workflow
3625
6. After the workflow completes, a new label should be applied to your issue
@@ -281,4 +270,4 @@ jobs:
281270
issueTitle: "A cat fact for you from ${{ github.repository_owner }}"
282271
283272
```
284-
</details>
273+
</details>

0 commit comments

Comments
 (0)