Skip to content
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

Executable tutorial proposal (lvainio) #2491

Merged
merged 4 commits into from
Sep 24, 2024
Merged

Conversation

lvainio
Copy link
Contributor

@lvainio lvainio commented Sep 16, 2024

Assignment Proposal

Title

SAST in go using gosec

Names and KTH ID

Deadline

  • Task 2

Category

  • Executable Tutorial

Description

To make the tutorial I will use Killercoda. Gosec is a security scanner for the go language which identifies common vulnerabilities. My idea is to create a mock project in go that contains some vulnerabilities and then show in the tutorial how gosec can be used to identify these vulnerabilities. I will show how gosec is installed and will give some different examples on how to use it. I might also show how it can be integrated with GitHub Actions.

Relevance

Detecting vulnerabilities as soon as new code is commited to the code base is great since it is often easier and cheaper to fix these issues when they are found early. Scanning the source code for known vulnerabilities, which is what gosec does, is one way to detect security issues early on. Having security integrated in the DevOps workflow also alleviates the potential bottleneck of having a completely separate security team having to review each new update, which could delay deployment.

@sofiabobadilla
Copy link
Collaborator

sofiabobadilla commented Sep 19, 2024

Hi!
The proposal is interesting, but you are missing one crucial things:
Find a partner, all tasks must be performed in pairs.

@sofiabobadilla sofiabobadilla added the collaboration_wanted Use this tag to look for group members label Sep 19, 2024
@lvainio
Copy link
Contributor Author

lvainio commented Sep 19, 2024

Was it not possible to do 2 tasks alone? I remember reading that

@sofiabobadilla
Copy link
Collaborator

It is not possible to do any task alone. Please find a partner.

@lvainio
Copy link
Contributor Author

lvainio commented Sep 24, 2024

We have updated the pull request now!

@sofiabobadilla
Copy link
Collaborator

Wonderful!
Thank you both 😄

I'll merge now.

@sofiabobadilla sofiabobadilla merged commit a0bf02d into KTH:2024 Sep 24, 2024
2 checks passed
@DavidCWQ
Copy link
Contributor

Hi @sofiabobadilla, I just want a double check. Shall I change the folder name to include my KTH ID as lvainio-wenqic?

@sofiabobadilla
Copy link
Collaborator

Yes please :)

@DavidCWQ
Copy link
Contributor

DavidCWQ commented Sep 25, 2024

Hi @sofiabobadilla ,

I encountered an error while creating pull-request for renaming the folder to lvainio-wenqic.

What should I do next?

Here’s the traceback:

Traceback (most recent call last):
  File "/home/runner/work/devops-course/devops-course/./canvas-code/update_task.py", line 188, in <module>
    main()
  File "/home/runner/work/devops-course/devops-course/./canvas-code/update_task.py", line 181, in main
    check_groups(canvas_groups_category_id, task_name, github_groups)
  File "/home/runner/work/devops-course/devops-course/./canvas-code/update_task.py", line 92, in check_groups
    raise Exception("User {0} already registered for {1} !".format(member, task_name))
Exception: User lvainio already registered for executable-tutorial!

Here's the complete error message:

Run export PYTHONPATH="$PWD/canvas-code/utils"
Traceback (most recent call last):
Getting tasks : executable-tutorial
  File "/home/runner/work/devops-course/devops-course/./canvas-code/update_task.py", line 188, in <module>
    main()
TASK_NAME executable-tutorial
  File "/home/runner/work/devops-course/devops-course/./canvas-code/update_task.py", line 181, in main
    check_groups(canvas_groups_category_id, task_name, github_groups)
  File "/home/runner/work/devops-course/devops-course/./canvas-code/update_task.py", line 92, in check_groups
    raise Exception("User {0} already registered for {1} !".format(member, task_name))
Exception: User lvainio already registered for executable-tutorial !
CANVAS_GROUPS_SET {'Presentations': 277[12](https://github.com/KTH/devops-course/actions/runs/11029753015/job/30632871077?pr=2538#step:6:13), 'Scientific Papers': 27713, 'Demos': 27714, 'Open-source contributions': 27715, 'Executable Tutorials': 27716, 'Feedback': 27717, 'Student groups': 28584}
https://canvas.kth.se/api/v1/group_categories/277[16](https://github.com/KTH/devops-course/actions/runs/11029753015/job/30632871077?pr=2538#step:6:17)/groups?per_page=200
{'Authorization': '***'}
Error: Process completed with exit code 1.

@sofiabobadilla
Copy link
Collaborator

we are trying to fix it now.
I'll let you know how it goes.

@sofiabobadilla sofiabobadilla removed the collaboration_wanted Use this tag to look for group members label Sep 25, 2024
@sofiabobadilla
Copy link
Collaborator

Solved.
Thank you @algomaster99 :)

@DavidCWQ
Copy link
Contributor

Thank you sofiabobadilla & algomaster99!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants