Skip to content

feat(report): add end of service life flag to OS metadata#1142

Merged
knqyf263 merged 5 commits intoaquasecurity:mainfrom
AndreyLevchenko:issue-1118
Jul 27, 2021
Merged

feat(report): add end of service life flag to OS metadata#1142
knqyf263 merged 5 commits intoaquasecurity:mainfrom
AndreyLevchenko:issue-1118

Conversation

@AndreyLevchenko
Copy link
Contributor

Closes #1118

if eosl {
log.Logger.Warnf("This OS version is no longer supported by the distribution: %s %s", osFound.Family, osFound.Name)
log.Logger.Warnf("The vulnerability detection may be insufficient because security updates are not provided")
osFound.Eosl = eosl
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can put this line outside of this statement since this value should be filled regardless of the condition. I know the result will be the same since the default value of boolean is false, but the intent of the code is different.

@knqyf263 knqyf263 merged commit 214fe82 into aquasecurity:main Jul 27, 2021
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.

Add EOL info to the Metadata.OS field of JSON schema

2 participants