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

fix: Fixed spec parser and improved debug, warning and error messages #47

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

EnturWilhelm
Copy link
Contributor

@EnturWilhelm EnturWilhelm commented Oct 16, 2024

@EnturWilhelm EnturWilhelm requested a review from a team as a code owner October 16, 2024 13:08
@EnturWilhelm EnturWilhelm changed the title fix: Fixed spec parser and improved debug messages fix: Fixed spec parser and improved debug, warning and error messages Oct 16, 2024
@@ -334,7 +334,7 @@ jobs:
except IOError:
pass
if allowlist == False:
print(f'::notice ::Allowlist file not found')
print(f'::notice ::Local allowlist file not found, skipping remaining steps')
Copy link
Contributor

Choose a reason for hiding this comment

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

Kan vi skrive "Allowlist not found in current respository" eller noe i den duren?

@@ -436,12 +434,10 @@ jobs:
with open(os.path.join(_file_location, 'external_codescan.yml'), 'r') as f:
data = yaml.safe_load(f)
except IOError:
print('::error ::External allowlist file not found')
print('::error ::External allowlist file not found, this should not ever happen')
Copy link
Contributor

Choose a reason for hiding this comment

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

"This should not happen" er kanskje litt forvirrende.
Kunne teksten vært "local copy of external allowlist not found."

@@ -159,13 +159,11 @@ jobs:
except IOError:
pass
if data == '':
print('::error ::Allowlist file not found')
print('::error ::Local allowlist file not found')
Copy link
Contributor

Choose a reason for hiding this comment

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

"No allowlist found in this repository"

@@ -174,12 +172,10 @@ jobs:
with open(os.path.join(_file_location, 'external_dockerscan.yml'), 'r') as f:
data = yaml.safe_load(f)
except IOError:
print('::error ::External allowlist file not found')
print('::error ::External allowlist file not found, this should not ever happen')
Copy link
Contributor

Choose a reason for hiding this comment

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

"This should not happen" er kanskje litt forvirrende.
Kunne teksten vært "local copy of external allowlist not found."

@EnturWilhelm EnturWilhelm merged commit a4e8eb8 into main Oct 16, 2024
2 checks passed
@EnturWilhelm EnturWilhelm deleted the fix/spec_parse branch October 22, 2024 13:12
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.

2 participants