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

Duplicate reasons are reported for the same rule #2553

Open
BernieWhite opened this issue Sep 21, 2024 · 0 comments
Open

Duplicate reasons are reported for the same rule #2553

BernieWhite opened this issue Sep 21, 2024 · 0 comments
Labels
bug Something isn't working feature: output Issues that affect output and results

Comments

@BernieWhite
Copy link
Member

Description of the issue

When collecting reasons for a rule. Duplicate reasons can occur down different code paths. A rule should not report the exact same reason more then once.

Error output

[FAIL] Azure.Deployment.AdminUsername (AZR-000284)
| Template: modules/virtual-machine-windows/v0/.tests/main.tests.bicep:0:0

| RECOMMEND:
| Sensitive properties should be passed as parameters. Avoid using deterministic
| values for sensitive properties.

| REASON:
| - The property 'adminUsername' uses a deterministic literal value.
| - The property 'adminUsername' uses a deterministic literal value.
| - The property 'adminUsername' uses a deterministic literal value.
| - The property 'adminUsername' uses a deterministic literal value.
| - The property 'adminUsername' uses a deterministic literal value.
| - The property 'adminUsername' uses a deterministic literal value.
| - The property 'adminUsername' uses a deterministic literal value.
| - The property 'adminUsername' uses a deterministic literal value.

| HELP:
| - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Deployment.AdminUsername/

Module in use and version:

  • Module: PSRule
  • Version: v3.0.0-B0267
@BernieWhite BernieWhite added bug Something isn't working feature: output Issues that affect output and results labels Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: output Issues that affect output and results
Projects
None yet
Development

No branches or pull requests

1 participant