Skip to content

pyscg 06_logging, updated titles as part of #1017#1063

Merged
myteron merged 8 commits intoossf:mainfrom
myteron:pyscg_06_logging_updating_titles
Mar 20, 2026
Merged

pyscg 06_logging, updated titles as part of #1017#1063
myteron merged 8 commits intoossf:mainfrom
myteron:pyscg_06_logging_updating_titles

Conversation

@myteron
Copy link
Contributor

@myteron myteron commented Mar 9, 2026

Updating titles as per #1017

Signed-off-by: Helge Wehder <helge.wehder@ericsson.com>
fixed linting

Signed-off-by: myteron <myteron@gmail.com>
Copy link
Contributor

@BartKaras1128 BartKaras1128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments of references that were missed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need to be done in the actual code example too I'd say

Suggested change
# For more details, check CWE-693/CWE-778: Implement Informative Event Logging

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: add comment to line noncompliant02.py line 102 in the readme.md and line 18 in the .py

myteron and others added 4 commits March 13, 2026 11:57
…ME.md

Co-authored-by: Bartlomiej Karas <moezarts@gmail.com>
Signed-off-by: myteron <myteron@gmail.com>
…ME.md

Co-authored-by: Bartlomiej Karas <moezarts@gmail.com>
Signed-off-by: myteron <myteron@gmail.com>
…ME.md

Co-authored-by: Bartlomiej Karas <moezarts@gmail.com>
Signed-off-by: myteron <myteron@gmail.com>
…ME.md

Co-authored-by: Bartlomiej Karas <moezarts@gmail.com>
Signed-off-by: myteron <myteron@gmail.com>
@s19110
Copy link
Contributor

s19110 commented Mar 16, 2026

reviewing

Copy link
Contributor

@s19110 s19110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One file needs fixing. I also left one optional suggestion.

Comment on lines 229 to 233
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should direct users to the CWEs or our rules that are based on those CWEs. Those would be:
CWE-390 = pyscg-0016
CWE-117 = pyscg-0022
CWE-532 = pyscg-0019

I think the intial intention was to link to our rules, which shared the names with CWEs but both approaches work in my opinion. Linking to our rules could be slightly better since we would provide a Python-specific solution, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to address this in code example and readme

Comment on lines +33 to +38
<<<<<<< HEAD
* *[pyscg-0050: Generation of Error Message Containing Sensitive Information](../../06_logging/pyscg-0050/README.md)*
* *[pyscg-0040: Trust Boundary Violation](../../01_introduction/pyscg-0040/README.md)*
=======
* *[pyscg-0050: Sanitize Error Output to Prevent Information Disclosure](../../06_logging/pyscg-0050/README.md)*
* *[pyscg-0040: Use Process Isolation for Trust Zones](../../01_introduction/pyscg-0040/README.md)*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like an unresolved merge conflict 😉
It should probably look like this instead:

Suggested change
<<<<<<< HEAD
* *[pyscg-0050: Generation of Error Message Containing Sensitive Information](../../06_logging/pyscg-0050/README.md)*
* *[pyscg-0040: Trust Boundary Violation](../../01_introduction/pyscg-0040/README.md)*
=======
* *[pyscg-0050: Sanitize Error Output to Prevent Information Disclosure](../../06_logging/pyscg-0050/README.md)*
* *[pyscg-0040: Use Process Isolation for Trust Zones](../../01_introduction/pyscg-0040/README.md)*
* *[pyscg-0050: Sanitize Error Output to Prevent Information Disclosure](../../06_logging/pyscg-0050/README.md)*
* *[pyscg-0040: Use Process Isolation for Trust Zones](../../01_introduction/pyscg-0040/README.md)*

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to address this.

myteron added 2 commits March 20, 2026 11:33
Signed-off-by: Helge Wehder <helge.wehder@ericsson.com>
Signed-off-by: myteron <helge.wehder@ericsson.com>
Copy link
Contributor

@s19110 s19110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now!

Copy link
Contributor Author

@myteron myteron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor

@BartKaras1128 BartKaras1128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve!

@myteron myteron merged commit 74c9b85 into ossf:main Mar 20, 2026
2 checks passed
@myteron myteron deleted the pyscg_06_logging_updating_titles branch March 20, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants