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

Fixed case when pre-release is in suffix #565

Merged
merged 5 commits into from
Jul 22, 2020
Merged

Fixed case when pre-release is in suffix #565

merged 5 commits into from
Jul 22, 2020

Conversation

rahul2393
Copy link
Contributor

Tests added to cover scenarios when version contains pre-release in minor or patch version

pkg/scanner/utils/utils.go Outdated Show resolved Hide resolved
pkg/scanner/utils/utils.go Outdated Show resolved Hide resolved
@knqyf263
Copy link
Collaborator

Could you try $ trivy image knqyf263/vuln-image:1.2.3 and make sure there is no error?

@rahul2393
Copy link
Contributor Author

Screenshot 2020-07-21 at 4 50 00 PM

1 error because the constraint is empty, otherwise no errors @knqyf263

@knqyf263
Copy link
Collaborator

Yes, an error makes a user wonder if the result is incorrect. We have to handle the error as well.

@rahul2393
Copy link
Contributor Author

@knqyf263 updated error to debug

@knqyf263
Copy link
Collaborator

Can we skip the case when the constraint is empty and suppress the error?

@rahul2393
Copy link
Contributor Author

@knqyf263 please check now

@knqyf263 knqyf263 merged commit 0b5d936 into aquasecurity:master Jul 22, 2020
liamg pushed a commit that referenced this pull request Jun 7, 2022
* Fixed case when pre-release is in suffix

* moved regex to global scope

* removed not needed code

* Update error to debug

* skip constraint when empty
liamg pushed a commit that referenced this pull request Jun 20, 2022
* fix(secrets): added allow rule for examples

* test(secrets): added test for skip example file
josedonizetti pushed a commit to josedonizetti/trivy that referenced this pull request Jun 24, 2022
)

* feat: adding k8s rego line numbers
* test: Add k8s rego tests
* feat: added result metadata to advanced k8s policies
* fix: rego for account tokens
* fix(tests): fixing the rego tests for pss
* fix: remaining opa tests
* feat(scanning): Rego policy line numbers for K8s
* fix(rego): fix opa formatting
* fix(tests): fix broken tests
* chore: merge in master
* fix: remove dependence on the chartname being passed in

Signed-off-by: Owen Rumney <owen.rumney@aquasec.com>

Co-authored-by: Liam Galvin <liam.galvin@aquasec.com>
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.

None yet

2 participants